# Casting Out Nines

A bazillion emails on the dog puzzle. It’s just a slightly dressed-up version of the old “casting out nines” technique.

THEOREM. Take any number X; jumble up its digits to get Y; subtract the lesser from the greater of X and Y; the answer is bound to be divisible by 9.

PROOF. Suppose the digits of the original number, in order, are A, B, C, D,… That means that the number is A times some power of ten, plus B times the next-lower power of ten, plus C times the next-lower power of ten, and so on. When you jumble up the digits to make a new number, this new number will **still** be A times some power of ten, plus B times some power of ten, plus… Only the powers are different! Subtracting gives you A times (some power of ten minus some other power of ten) plus B times (some power of ten minus some other power of ten) plus… But any power of ten minus any other power of ten gives you a number divisible by nine. ( E.g. 10,000 minus 10 gives you 9,990.) So the result of your subtraction must divide by 9.

So that 4-digit difference — the result of your subtraction in step 2 of the dog puzzle — is bound to be some multiple of 9. For illustration, I’ll suppose it’s 7524, which does indeed divide by 9.

Instead of removing your chosen digit D (I’ll choose D=5) from that difference, just imagine replacing the digit D by a zero. Call the resulting 4-digit number N. In my example, N=7024.

Now, treat that final step — jumbling the three remaining digits — as jumbling up the **four** digits of N, but making sure the zero ends up at far left. (E.g. treat jumbling up 724 to get 247 as jumbling up N=7024 to get 0247.)

By my theorem, the 3-digit (ignoring the leading zero now) result of this jumble differs from N by some multiple of 9. (Yes it does: 7024 minus 247 equals 6777, which is 9 times 753.)

AND, it also differs by some multiple of 9 from the number you get if you jumble up N’s digits to put the zero — the one that replaced the mystery digit — at the far right, units, position. So 247 doesn’t just differ from 7024 by some multiple of 9, but also from 7420 likewise… which is some multiple of 9, minus D! (Yep: 247 differs from 7420 by 7173, which is 9 times 797. and 7420 is 9 times 825, minus 5.)

Armed with this understanding, divide that final, jumbled, 3-digit number by 9 and note the remainder R. R, plus the mystery digit D, must equal 9. So D is 9 minus R. (247 is 9 times 27, remainder 4. 4 plus 5 is 9.)

So all the dog program does is look at your final, jumbled-up three digits, divide by 9 to get the remainder, and subtract that remainder form 9. Note that the final, jumbled-up three digits can’t divide EXACTLY by 9 (giving remainder zero), because then so would my “N,” which would mean you hadn’t removed a digit….

### Most Popular

#### Jussie Smollett Jokes Declared Off-Limits

The Jussie Smollett story has been declared not fit for jokes. "It's a straight-up tragedy," declares the co-creator of a Comedy Central show, South Side, set in Chicago. Bashir Salahuddin, a former Jimmy Fallon writer, says “The whole situation is unfortunate. Particularly for the city, there’s bigger ...

#### Progressive Democrats Renounce Their Former Selves

All politicians are “flexible.” If they are in politics long enough, many reinvent themselves ideologically several times over — given the perceived volatile mood of 51 percent of their constituency. But rarely have we seen an entire primary field of candidates scrambling to renounce all their past ...
Video

#### Five Cops Were Arrested in Relation to Stormy Daniels’ Arrest

They're facing charges.

#### What The 1619 Project Leaves Out

“The goal of The 1619 Project, a major initiative from The New York Times that this issue of the magazine inaugurates, is to reframe American history by considering what it would mean to regard 1619 as our nation’s birth year,” The New York Times Magazine editors declare. “Doing so requires us to place ...

#### Courage Is the Cure for Political Correctness

This might come as some surprise to observers of our campus culture wars, but there was a time, not long ago, when the situation in American higher education was much worse. There a wave of vicious campus activism aimed at silencing heterodox speakers, and it was typically empowered by a comprehensive regime of ...

#### At Michigan State University, the Word ‘but’ Is a Trigger

Michigan State University instructed student employees to avoid using words and phrases including “but,” “I apologize,” and “no problem” -- because apparently, they’re “triggers.” The students received these instructions during a mandatory hour-long training, titled “Inclusive and ...

#### The Wrong Side of Pete Buttigieg’s History

Pete Buttigieg was conducting a “town hall” with Jake Tapper on CNN last night when he was asked what he thinks of religious Democrats who oppose gay marriage, given his wont to condemn Mike Pence for the same. He responded by invoking his experience in Indiana, where “people were able to move past old ...

#### Bill Maher Mocks Rashida Tlaib’s Call to Boycott His Show

Bill Maher mocked Representative Rashida Tlaib (D., Mich.) Wednesday after she called for a boycott of his program, HBO's Real Time With Bill Maher, in response to his criticism of the Boycott Divestment and Sanctions (BDS) movement. “Some people have one move only: boycott. Cancel. Make-go-away,” Maher ...

#### Please, America, Let’s Take a Break from the Kennedys

Making the click-through worthwhile: Yet another member of the Kennedy family aspires to the title “Senator,” prompting the question of whether both the voters and the Kennedys would be better off taking a break from each other; China starts pumping out disinformation on Twitter and Facebook; and a new poll ...

#### Beto and the Press Throw America under the Bus

Beto O’Rourke has taken the measure of America and found it wanting. “This country, though we would like to think otherwise,” he intoned over the weekend, “was founded on racism, has persisted through racism, and is racist today.” This is now a mainstream sentiment in the Democratic party. Bernie ...