Bases & Digits
Non-decimal bases, digit manipulation, digit sums, palindromes
Bases & DigitsAMC 10 Step by Step
Name: Date: October 28, 2026
Number Theory · 43 problems have this as their main idea
43
primary-topic problems (3.3% of all)
26
more as a secondary topic
Where it appears
15
P1-10
8
P11-15
12
P16-20
8
P21-25
What you need to know
- What the digits mean. In base , the places stand for from right to left. So the digits mean . Each digit is a whole number from to , and the first digit is not . Example: .
- How many digits. A positive whole number has exactly digits in base exactly when . Example: the -digit numbers in base are through , since and .
- Converting to base . Divide by again and again; the remainders, read from last to first, are the digits. Or take away the largest power of that fits, as often as it fits, and repeat with smaller powers. Example: , , , , so .
- Base- numbers with letters. A two-digit number with digits and is (here is a digit, not a base); a three-digit one is . Reversing gives , and the difference is , always a multiple of . Example: .
- The digit-sum trick. A number and its digit sum leave the same remainder when divided by . We write , where "" means we compare remainders after dividing by . In base , use instead of . Example: and both leave remainder . In base , and both leave remainder when divided by .
- Palindromes. A palindrome reads the same both ways. A four-digit palindrome with digits equals . Since and , it is always divisible by . Example: .
How AMC 10 tests it
- " is written one way in base and another way in base (or base ); find or ." Write each form as a polynomial in and solve (problems 10–18).
- Digit puzzles: a number equals the product of its digits plus their sum, or reversing its digits multiplies it by a fixed number. Write it as and solve.
- Counting palindromes, or numbers with a digit property, in a range, sometimes in base or (problems 12–20).
- Digits of powers or factorials in another base, such as how many zeros ends with in base . Since , each zero uses up two s and one : count the s and s in , halve the count of s (rounding down), and take the smaller number. Example: has seven s and four s, so it ends in the smaller of and , which is zeros in base .
Standard approaches
- Turn every digit string into algebra at once. The base becomes an unknown whole number with limits on it.
- Use to narrow down before solving anything.
- Look at remainders after dividing by , , or to rule out cases quickly.
- To count numbers, build them digit by digit and multiply the choices. Treat the first digit separately, since it can't be .
- When the bases are small, convert and look. A table of small powers of and beats theory.
Worked example
When is written in base , it has exactly three digits and its last digit is . How many possible values of are there?
(A) (B) (C) (D) (E)
Step 1: three digits. We need .
Step 2: limits on . Since is less than and is more, . Since but , .
Step 3: last digit . The last digit is the remainder when is divided by . It is exactly when divides .
Step 4: count. has divisors . The ones from to are , , and . For example, .
The answer is .
Pitfalls
- Allowing a digit that is or more, or a first digit of ; either makes a "solution" invalid. Example: if you get for a number written , throw it out: base has no digit .
- Reading the remainders in the wrong order: the first remainder is the last (units) digit. Example: in base gives remainders ; written in that order, , not .
- Mixing up "exactly three digits" with "at most three digits." "At most" drops , which is what puts an upper limit on . Example: base writes with only two digits, so it must not count above.
- Assuming base- digit facts work in every base. The digit-sum test for works only because leaves remainder when divided by . Example: has digit sum , but is not divisible by .
Traps that recur
- Testing n = 1 alone (which yields many digit triples) or using C_n with n digits instead of 2n digits. (2018 AMC 10A #25)
- Treating the base-5 and base-6 strings as base-10 numbers without separating the units-digit condition from the tens-digit condition, or forgetting carries are impossible here. (2013 AMC 10B #25)
- Forgetting to drop b = 3 (below the required b ≥ 5) from the residue class 3 mod 8, which gives K = 759 and digit sum 21. (2024 AMC 10A #18)
- Counting the 17 alternating terms as 17 powers of two, or getting 8 * 17 = 136 and forgetting the final +1. (2020 AMC 10A #21)
Problems, easiest first
Open any of them to try it here; the worked solution is on the problem's own page.