Skip to content

Digits and Number Forms

8 lessons · 21 questions · 6 PYQs · ~75 s per question

The idea

Write numbers by their digits: ab‾=10a+b\overline{ab}=10a+b. Reversals, digit sums and digit products become small equations; digit ranges (00-99, leading digit non-zero) cut the solutions down to one. The long string 123456789101112…123456789101112\ldots is handled in blocks by digit length. Digit counts of powers come from pairing 22s and 55s.

Textbook vs exam method

Exam method

  1. Indore 2019 Q18. 6389−2889=3500=875×46389-2889=3500=875\times4 exactly, so the digit is the last digit of 1000+874=18741000+874=1874: 44.Indore 2019
  2. Indore 2020 Q7. a⋅d=0a\cdot d=0 and a≠0a\ne0 give d=0d=0, a=7a=7; bc=18bc=18 with b−c=7b-c=7 gives 9,29,2: 79207920.Indore 2020
  3. Indore 2021 Q19. 1000a+100b+10c+da+b+c+d≤1000\frac{1000a+100b+10c+d}{a+b+c+d}\le1000; answer 10001000.Indore 2021
  4. 40004000th digit of 0.142857‾0.\overline{142857}: 4000≡4(mod6)4000\equiv4\pmod6, digit 88.
  5. Digits of 2a5b2^{a}5^{b}: pair into tens, count the leftover's digits.

Worked examples

Example 1Sitter

A two-digit number

Example 2Easy

How many digits are written from 11 to 500500? 9+180+401×3=13929+180+401\times3=1392.

Example 3Easy

Digits in 220×5242^{20}\times5^{24}

Example 4Typical

Three-digit number with digits in AP, digit sum 1515, reversal 396396 less

Example 5Typical

How many times is 44 written from 2121 to 500500? Units 4848, tens 5050, hundreds 100100

Traps

  • Off-by-one positions; zero thousands digit; occurrences vs numbers; digit count of powers off by one.

Formulas

Two-digit numbers and their reversals

ab‾=10a+b,ab‾−ba‾=9(a−b),ab‾+ba‾=11(a+b)\overline{ab}=10a+b,\quad \overline{ab}-\overline{ba}=9(a-b),\quad \overline{ab}+\overline{ba}=11(a+b)

Reversal changes a two-digit number by a multiple of 9; the sum of a number and its reversal is a multiple of 11.
Three-digit reversal difference

abc‾−cba‾=99(a−c)\overline{abc}-\overline{cba}=99(a-c)

Indore 2020 Q7 style puzzles: translate each clause into an equation in a, b, c, d and use digit ranges.
Digit count of a product of powers of two and five

2a×5b=10min⁡(a,b)×(leftover power) ⇒ digits=min⁡(a,b)+digits of leftover2^{a}\times5^{b}=10^{\min(a,b)}\times(\text{leftover power})\ \Rightarrow\ \text{digits}=\min(a,b)+\text{digits of leftover}

Pair 2s with 5s to make tens; the leftover factor supplies the leading digits (5^72 x 8^27 = 512 x 10^72: 75 digits).
Combined digit count of a power of two and the same power of five

2n and 5n together have n+1 digits2^{n}\text{ and }5^{n}\text{ together have }n+1\text{ digits}

Indore 2024 Q27: 2^2024 and 5^2024 -> 2025 digits (stored in the logarithms chapter).
Digit blocks in 1, 2, 3, ..., N

digits used writing 1…N: 9+180+2700+… (blocks of 9,90,900,… )\text{digits used writing }1\dots N:\ 9+180+2700+\dots\ (\text{blocks of }9,90,900,\dots)

Indore 2019 Q18: 2889 digits before the four-digit numbers; 6389 - 2889 = 3500 = 875 x 4 -> last digit of 1874, i.e. 4.
Number to digit-sum ratio bounds

abcd‾a+b+c+d≤1000,abc‾a+b+c≤100 (equality for 1000,100,200,… )\frac{\overline{abcd}}{a+b+c+d}\le1000,\quad \frac{\overline{abc}}{a+b+c}\le100\ (\text{equality for }1000, 100, 200,\dots)

Indore 2021 Q19: the ratio is at most 1000 for a four-digit number (1000/1); the least three-digit ratio is 199/19.
k-th digit of a recurring decimal

0.d1…dt‾: k-th digit=d((k−1) mod t)+10.\overline{d_1\dots d_t}:\ k\text{-th digit}=d_{((k-1)\bmod t)+1}

Period 6 for 1/7; the 4000th digit of 0.142857... is the 4th of the block: 8.
Occurrences of a digit

#{digit d in 1…10k−1}=k⋅10k−1 (d≠0)\#\{\text{digit }d\text{ in }1\dots10^{k}-1\}=k\cdot10^{k-1}\ (d\ne0)

From 1 to 999 every non-zero digit appears 300 times; adjust for partial ranges place by place.

In the exam

Shortcuts
  • For 'find the number' puzzles write 10t+u10t+u (or 100a+10b+c100a+10b+c) and use the reversal identities before anything else.
  • Digits of 2a5b2^{a}5^{b}: min⁡(a,b)\min(a,b) zeros plus the digits of 2∣a−b∣2^{|a-b|} or 5∣a−b∣5^{|a-b|}.
  • kk-th digit of 123456…123456\ldots: subtract 99, 180180, 27002700, ... until the remainder fits; divide by the digit length; the remainder locates the digit inside the number.
  • Max of N/S(N)N/S(N): put all the weight in the leading digit (10001000, 100100); min: leading digit 11, other digits 99.
  • Digit occurrences: count units, tens, hundreds separately; each complete block of 100100 gives 10+1010+10.
~75 s per question at exam speed
When to skip: Skip a digit puzzle with four or more interacting clauses if no clause pins a digit outright within 45 s; the string-position and digit-count items are always worth doing.

Before this

What the exams ask here

  • how many digits in 2^a 5^b (Indore 2024 Q27 filed under logarithms)
  • find a two/three-digit number from digit relations (reverse, sum, product)
  • highest value of N / (digit sum) for a four-digit N (Indore 2021 Q19)
  • 6389th digit of 123456789101112... (Indore 2019 Q18)
  • four-digit number from product/difference conditions on its digits (Indore 2020 Q7)
  • how many times the digit 4 is written from 1 to 500
  • 4000th digit of 0.142857...
Next sub-topicInteger Solutions of Equations

Practise this free. Every mistake is saved and comes back until you fix it.

Start free