Articles by others on the same topic
In a positional notation of integer radix , a repunit is a repdigit whose numerical digits are all . A length- repunit, with , is the geometric seriesFor example, , while . The same string has different values in different radices.
Appending one numerical digit gives . Thus remainders modulo a positive integer obey , starting with . This recurrence relation avoids constructing huge integers. For decimal repunits modulo , the successive remainders are ; hence the six-digit repunit is divisible by .
A repunit divisible by exists exactly when are coprime integers, and one then exists with at most digits. Necessity follows because a common prime factor of divides every nonconstant term of , leaving remainder one. For sufficiency, examine modulo . If none is zero, the pigeonhole principle gives equal remainders at two indices . Their difference is . Cancelling the invertible factor modulo produces a divisible repunit of length .