Base Representation
For any base , every positive integer has a unique representation with digits , written . Convert to base by repeated division (the remainders are the digits, last to first); convert back by evaluating the polynomial.
Base representation is the division algorithm applied repeatedly: , then , and so on until the quotient is . The first remainder is the units digit, because it is what is left after taking out all the whole groups of . Uniqueness comes from uniqueness of remainders. Base underlies computers, base compresses base , and base with digits (balanced ternary) solves the classic weighing puzzles.
Divide by repeatedly, recording remainders: , , , , , . The first remainder is the units digit, so read them from the bottom up: . Check: .
; ; ; . Digits from the last division to the first: . Check: . ✓
Write in base . Since , each block of four binary digits (from the right) is exactly one hexadecimal digit: is , and the digit eleven is written B. So . Check in binary: .
Reading the remainders top to bottom. For they come out , and writing "" gives , not . The first remainder is the ones digit and belongs on the RIGHT. A one-line check by evaluating the polynomial catches this every time.
Write in binary, and say how many s it has.
Show the answerHide the answer
The largest powers of that fit: , so (bits for ). It has three ones. Repeated division gives the same digits.
Arithmetic in Other Bases
Addition and multiplication work column by column in any base, exactly as in base ten, except that a column carries when it reaches instead of . An equation between numerals in an unknown base becomes a polynomial equation in , with one extra condition: every digit that appears must be less than .
The column method is the distributive law: , and when we trade units for one , which is the carry. Nothing about ten was ever special. For unknown bases, expanding each numeral as a polynomial turns a puzzle about symbols into ordinary algebra; the digit condition then picks out the one root that makes sense.
Compute . Units: , write and carry . Eights: , write and carry . Sixty-fours: . So the sum is . Check in base ten: and . ✓
Compute . Units: , write carry . Fives: , write carry , which becomes the next digit. So . Check: , , and . ✓
In which base is ? Expand: , i.e. , so and . A base is positive, so , and it must exceed every digit used — the largest is , so qualifies. Check: . ✓
Forgetting the digit condition. An equation such as solves to , but a numeral containing the digit cannot be in base — so there is NO valid base. Every root of the polynomial must be checked against the digits before it is accepted, and negative or fractional roots discarded.
Find the base in which .
Show the answerHide the answer
Expand: , so , , and (positive, and larger than the digit ). Check: . ✓
Digit Problems
A two-digit number with digits is ; reversing gives ; their difference is . Writing the number in terms of its digits turns a digit puzzle into an equation with small integer unknowns, solvable by bounding and casework.
The payoff is that digits are tightly bounded — for a leading digit, otherwise — so an equation with infinitely many real solutions often has only a handful of digit solutions, found by checking a short list. Bound first, then test: the equation tells you which way to squeeze.
A two-digit number is times the sum of its digits. Which? gives , so . With , : the numbers are . Each checks: .
A two-digit number exceeds its reversal by , and its digits sum to . Find it. The difference is , so ; with , adding gives : , . The number is , and . ✓
Find every three-digit number equal to times the sum of its digits. simplifies to . The right side is at most , so and . Then must be even and at most , so , which leaves — only gives a digit, . The one answer is .
A number and its digit sum are congruent mod . Repeatedly taking digit sums (the "digital root") gives , with in place of .
Forgetting the digit range: leading digits are –, others –. In the three-digit example, gives , , which solves the equation but is not a digit. Treat the range as part of the equation.
Find the digital root of .
Show the answerHide the answer
Digit sum , then . Check without the digits: , so . The digital root is 4.
Why It Works
Suppose has two representations and subtract them: with each satisfying . Then divides (everything else is a multiple of ), and forces . Divide by and repeat: , then , and so on. Every digit agrees. Existence is the repeated division, which stops because the quotients strictly decrease.
For two digits, . For three, : the middle digit cancels and the difference is a multiple of . In general, a number and ANY rearrangement of its digits have the same digit sum, hence the same remainder mod , so their difference is a multiple of .