Repdigit — Definition, Formula & Example
A repdigit is a positive whole number made of one digit repeated, such as 22, 555, or 8888. The name is short for "repeated digit."
A repdigit (in base 10) is a natural number of the form , where and . Its decimal representation is the digit written times. The one-digit numbers 1 through 9 are trivial repdigits, and some sources require . The special case gives the repunits 1, 11, 111, and so on.
Key Formula
Where:
- = the repdigit
- = the repeated digit, a whole number from 1 to 9
- = the number of times the digit appears (the length of the number)
Worked Example
Problem: Build the three-digit repdigit with digit 5 from the formula. Then show that it is divisible by 37.
Step 1: Substitute and into the formula. The fraction is the repunit 111.
Step 2: Factor the repunit 111, then substitute that factorization back into the product.
Step 3: Because 37 is a factor, dividing leaves no remainder. The same reasoning works for every three-digit repdigit, since each one equals .
Answer: The formula gives 555, and 555 = 15 × 37, so 555 is divisible by 37. In fact, every three-digit repdigit (111, 222, …, 999) is a multiple of 37.
Why It Matters
Writing a repdigit as times a repunit is a standard trick in competition problems such as MATHCOUNTS and AMC 8. It explains surprising facts like . The same factorization shows that any repdigit with at least two digits and a digit from 2 to 9 is composite, because and the repunit are both factors greater than 1.
Common Mistakes
Mistake: Calling a number like 1212 or 4545 a repdigit because it has a repeating pattern.
Correction: A repdigit repeats a single digit, so every digit must be identical. The number 1212 repeats the two-digit block 12, and . It is not a repdigit.
