Hubbry Logo
RepunitRepunitMain
Open search
Repunit
Community hub
Repunit
logo
7 pages, 0 posts
0 subscribers
Be the first to start a discussion here.
Be the first to start a discussion here.
Repunit
Repunit
from Wikipedia

In recreational mathematics, a repunit is a number like 11, 111, or 1111 that contains only the digit 1 — a more specific type of repdigit. The term stands for "repeated unit" and was coined in 1966 by Albert H. Beiler in his book Recreations in the Theory of Numbers.[note 1]

Key Information

A repunit prime is a repunit that is also a prime number. Primes that are repunits in base-2 are Mersenne primes. As of May 2025, the largest known prime number 2136,279,841 − 1, the largest probable prime R8177207 and the largest elliptic curve primality-proven prime R109297 are all repunits in various bases.

Definition

[edit]

The base-b repunits are defined as (this b can be either positive or negative)

Thus, the number Rn(b) consists of n copies of the digit 1 in base-b representation. The first two repunits base-b for n = 1 and n = 2 are

In particular, the decimal (base-10) repunits that are often referred to as simply repunits are defined as

Thus, the number Rn = Rn(10) consists of n copies of the digit 1 in base 10 representation. The sequence of repunits base-10 starts with

1, 11, 111, 1111, 11111, 111111, ... (sequence A002275 in the OEIS).

Similarly, the repunits base-2 are defined as

Thus, the number Rn(2) consists of n copies of the digit 1 in base-2 representation. In fact, the base-2 repunits are the well-known Mersenne numbers Mn = 2n − 1, they start with

1, 3, 7, 15, 31, 63, 127, 255, 511, 1023, 2047, 4095, 8191, 16383, 32767, 65535, ... (sequence A000225 in the OEIS).

Properties

[edit]
  • Any repunit in any base having a composite number of digits is necessarily composite. For example,
    R35(b) = 11111111111111111111111111111111111 = 11111 × 1000010000100001000010000100001 = 1111111 × 10000001000000100000010000001,
since 35 = 7 × 5 = 5 × 7. This repunit factorization does not depend on the base-b in which the repunit is expressed.
Only repunits (in any base) having a prime number of digits can be prime. This is a necessary but not sufficient condition. For example,
R11(2) = 211 − 1 = 2047 = 23 × 89.
  • If p is an odd prime, then every prime q that divides Rp(b) must be either 1 plus a multiple of 2p, or a factor of b − 1. For example, a prime factor of R29 is 62003 = 1 + 2·29·1069. The reason is that the prime p is the smallest exponent greater than 1 such that q divides bp − 1, because p is prime. Therefore, unless q divides b − 1, p divides the Carmichael function of q, which is even and equal to q − 1.
  • Any positive multiple of the repunit Rn(b) contains at least n nonzero digits in base-b.
  • Any number x is a two-digit repunit in base x − 1.
  • The only known numbers that are repunits with at least 3 digits in more than one base simultaneously are 31 (111 in base-5, 11111 in base-2) and 8191 (111 in base-90, 1111111111111 in base-2). The Goormaghtigh conjecture says there are only these two cases.
  • Using the pigeon-hole principle it can be easily shown that for relatively prime natural numbers n and b, there exists a repunit in base-b that is a multiple of n. To see this consider repunits R1(b),...,Rn(b). Because there are n repunits but only n−1 non-zero residues modulo n there exist two repunits Ri(b) and Rj(b) with 1 ≤ i < jn such that Ri(b) and Rj(b) have the same residue modulo n. It follows that Rj(b)Ri(b) has residue 0 modulo n, i.e. is divisible by n. Since Rj(b)Ri(b) consists of ji ones followed by i zeroes, Rj(b)Ri(b) = Rji(b) × bi. Now n divides the left-hand side of this equation, so it also divides the right-hand side, but since n and b are relatively prime, n must divide Rji(b).
  • The Feit–Thompson conjecture is that Rq(p) never divides Rp(q) for two distinct primes p and q.
  • Using the Euclidean Algorithm for repunits definition: R1(b) = 1; Rn(b) = Rn−1(b) × b + 1, any consecutive repunits Rn−1(b) and Rn(b) are relatively prime in any base-b for any n.
  • If m and n have a common divisor d, Rm(b) and Rn(b) have the common divisor Rd(b) in any base-b for any m and n. That is, the repunits of a fixed base form a strong divisibility sequence. As a consequence, If m and n are relatively prime, Rm(b) and Rn(b) are relatively prime. The Euclidean Algorithm is based on gcd(m, n) = gcd(mn, n) for m > n. Similarly, using Rm(b)Rn(b) × bmn = Rmn(b), it can be easily shown that gcd(Rm(b), Rn(b)) = gcd(Rmn(b), Rn(b)) for m > n. Therefore, if gcd(m, n) = d, then gcd(Rm(b), Rn(b)) = Rd(b).

Factorization of decimal repunits

[edit]

(Prime factors (or prime powers) parenthesized and colored (red) are "new factors", i. e. the prime factor (or power) divides Rn but does not divide Rk for all k < n) (sequence A102380 in the OEIS)[2]

R1 = 1
R2 = (11)
R3 = (3) · (37)
R4 = 11 · (101)
R5 = (41) · (271)
R6 = 3 · (7) · 11 · (13) · 37
R7 = (239) · (4649)
R8 = 11 · (73) · 101 · (137)
R9 = 3(2) · 37 · (333667)
R10 = 11 · 41 · 271 · (9091)
R11 = (21649) · (513239)
R12 = 3 · 7 · 11 · 13 · 37 · 101 · (9901)
R13 = (53) · (79) · (265371653)
R14 = 11 · 239 · 4649 · (909091)
R15 = 3 · (31) · 37 · 41 · 271 · (2906161)
R16 = 11 · (17) · 73 · 101 · 137 · (5882353)
R17 = (2071723) · (5363222357)
R18 = 32 · 7 · 11 · 13 · (19) · 37 · (52579) · 333667
R19 = (1111111111111111111)
R20 = 11 · 41 · 101 · 271 · (3541) · 9091 · (27961)
R21 = 3 · 37 · (43) · 239 · (1933) · 4649 · (10838689)
R22 = 11(2) · (23) · (4093) · (8779) · 21649 · 513239
R23 = (11111111111111111111111)
R24 = 3 · 7 · 11 · 13 · 37 · 73 · 101 · 137 · 9901 · (99990001)
R25 = 41 · 271 · (21401) · (25601) · (182521213001)
R26 = 11 · 53 · 79 · (859) · 265371653 · (1058313049)
R27 = 3(3) · 37 · (757) · 333667 · (440334654777631)
R28 = 11 · (29) · 101 · 239 · (281) · 4649 · 909091 · (121499449)
R29 = (3191) · (16763) · (43037) · (62003) · (77843839397)
R30 = 3 · 7 · 11 · 13 · 31 · 37 · 41 · (211) · (241) · 271 · (2161) · 9091 · 2906161

Smallest prime factor of Rn for n > 1 are

11, 3, 11, 41, 3, 239, 11, 3, 11, 21649, 3, 53, 11, 3, 11, 2071723, 3, 1111111111111111111, 11, 3, 11, 11111111111111111111111, 3, 41, 11, 3, 11, 3191, 3, 2791, 11, 3, 11, 41, 3, 2028119, 11, 3, 11, 83, 3, 173, 11, 3, 11, 35121409, 3, 239, 11, ... (sequence A067063 in the OEIS)

Repunit primes

[edit]

The definition of repunits was motivated by recreational mathematicians looking for prime factors of such numbers.

It is easy to show that if n is divisible by a, then Rn(b) is divisible by Ra(b):

where is the cyclotomic polynomial and d ranges over the divisors of n. For p prime,

which has the expected form of a repunit when x is substituted with b.

For example, 9 is divisible by 3, and thus R9 is divisible by R3—in fact, 111111111 = 111 · 1001001. The corresponding cyclotomic polynomials and are and , respectively. Thus, for Rn to be prime, n must necessarily be prime, but it is not sufficient for n to be prime. For example, R3 = 111 = 3 · 37 is not prime. Except for this case of R3, p can only divide Rn for prime n if p = 2kn + 1 for some k.

Decimal repunit primes

[edit]

Rn is prime for n = 2, 19, 23, 317, 1031, 49081, 86453, 109297 ... (sequence A004023 in OEIS). On July 15, 2007, Maksym Voznyy announced R270343 to be probably prime.[3] Serge Batalov and Ryan Propper found R5794777 and R8177207 to be probable primes on April 20 and May 8, 2021, respectively.[4] As of their discovery, each was the largest known probable prime. On March 22, 2022, probable prime R49081 was eventually proven to be a prime.[5] On May 15, 2023, probable prime R86453 was eventually proven to be a prime.[6] On May 26, 2025, probable prime R109297 was eventually proven to be a prime.[7]

It has been conjectured that there are infinitely many repunit primes[8] and they seem to occur roughly as often as the prime number theorem would predict: the exponent of the Nth repunit prime is generally around a fixed multiple of the exponent of the (N−1)th.

The prime repunits are a trivial subset of the permutable primes, i.e., primes that remain prime after any permutation of their digits.

Particular properties are

  • The remainder of Rn modulo 3 is equal to the remainder of n modulo 3. Using 10a ≡ 1 (mod 3) for any a ≥ 0,
    n ≡ 0 (mod 3) ⇔ Rn ≡ 0 (mod 3) ⇔ Rn ≡ 0 (mod R3),
    n ≡ 1 (mod 3) ⇔ Rn ≡ 1 (mod 3) ⇔ RnR1 ≡ 1 (mod R3),
    n ≡ 2 (mod 3) ⇔ Rn ≡ 2 (mod 3) ⇔ RnR2 ≡ 11 (mod R3).
    Therefore, 3 | n ⇔ 3 | RnR3 | Rn.
  • The remainder of Rn modulo 9 is equal to the remainder of n modulo 9. Using 10a ≡ 1 (mod 9) for any a ≥ 0,
    nr (mod 9) ⇔ Rnr (mod 9) ⇔ RnRr (mod R9),
    for 0 ≤ r < 9.
    Therefore, 9 | n ⇔ 9 | RnR9 | Rn.

Algebra factorization of generalized repunit numbers

[edit]

If b is a perfect power (can be written as mn, with m, n integers, n > 1) differs from 1, then there is at most one repunit in base-b. If n is a prime power (can be written as pr, with p prime, r integer, p, r >0), then all repunit in base-b are not prime aside from Rp and R2. Rp can be either prime or composite, the former examples, b = −216, −128, 4, 8, 16, 27, 36, 100, 128, 256, etc., the latter examples, b = −243, −125, −64, −32, −27, −8, 9, 25, 32, 49, 81, 121, 125, 144, 169, 196, 216, 225, 243, 289, etc., and R2 can be prime (when p differs from 2) only if b is negative, a power of −2, for example, b = −8, −32, −128, −8192, etc., in fact, the R2 can also be composite, for example, b = −512, −2048, −32768, etc. If n is not a prime power, then no base-b repunit prime exists, for example, b = 64, 729 (with n = 6), b = 1024 (with n = 10), and b = −1 or 0 (with n any natural number). Another special situation is b = −4k4, with k positive integer, which has the aurifeuillean factorization, for example, b = −4 (with k = 1, then R2 and R3 are primes), and b = −64, −324, −1024, −2500, −5184, ... (with k = 2, 3, 4, 5, 6, ...), then no base-b repunit prime exists. It is also conjectured that when b is neither a perfect power nor −4k4 with k positive integer, then there are infinity many base-b repunit primes.

The generalized repunit conjecture

[edit]

A conjecture related to the generalized repunit primes:[9][10] (the conjecture predicts where is the next generalized Mersenne prime, if the conjecture is true, then there are infinitely many repunit primes for all bases )

For any integer , which satisfies the conditions:

  1. .
  2. is not a perfect power. (since when is a perfect th power, it can be shown that there is at most one value such that is prime, and this value is itself or a root of )
  3. is not in the form . (if so, then the number has aurifeuillean factorization)

has generalized repunit primes of the form

for prime , the prime numbers will be distributed near the best fit line

where limit ,

and there are about

base-b repunit primes less than N.

  • is the base of natural logarithm.
  • is Euler–Mascheroni constant.
  • is the logarithm in base
  • is the th generalized repunit prime in baseb (with prime p)
  • is a data fit constant which varies with .
  • if , if .
  • is the largest natural number such that is a th power.

We also have the following 3 properties:

  1. The number of prime numbers of the form (with prime ) less than or equal to is about .
  2. The expected number of prime numbers of the form with prime between and is about .
  3. The probability that number of the form is prime (for prime ) is about .

History

[edit]

Although they were not then known by that name, repunits in base-10 were studied by many mathematicians during the nineteenth century in an effort to work out and predict the cyclic patterns of repeating decimals.[11]

It was found very early on that for any prime p greater than 5, the period of the decimal expansion of 1/p is equal to the length of the smallest repunit number that is divisible by p. Tables of the period of reciprocal of primes up to 60,000 had been published by 1860 and permitted the factorization by such mathematicians as Reuschle of all repunits up to R16 and many larger ones. By 1880, even R17 to R36 had been factored[11] and it is curious that, though Édouard Lucas showed no prime below three million had period nineteen, there was no attempt to test any repunit for primality until early in the twentieth century. The American mathematician Oscar Hoppe proved R19 to be prime in 1916,[12] and Lehmer and Kraitchik independently found R23 to be prime in 1929.

Further advances in the study of repunits did not occur until the 1960s, when computers allowed many new factors of repunits to be found and the gaps in earlier tables of prime periods corrected. R317 was found to be a probable prime circa 1966 and was proved prime eleven years later, when R1031 was shown to be the only further possible prime repunit with fewer than ten thousand digits. It was proven prime in 1986, but searches for further prime repunits in the following decade consistently failed. However, there was a major side-development in the field of generalized repunits, which produced a large number of new primes and probable primes.

Since 1999, four further probably prime repunits have been found, but it is unlikely that any of them will be proven prime in the foreseeable future because of their huge size.

The Cunningham project endeavours to document the integer factorizations of (among other numbers) the repunits to base 2, 3, 5, 6, 7, 10, 11, and 12.

Demlo numbers

[edit]

D. R. Kaprekar has defined Demlo numbers as concatenation of a left, middle and right part, where the left and right part must be of the same length (up to a possible leading zero to the left) and must add up to a repdigit number, and the middle part may contain any additional number of this repeated digit.[13] They are named after Demlo railway station (now called Dombivili) 30 miles from Bombay on the then G.I.P. Railway, where Kaprekar started investigating them. He calls Wonderful Demlo numbers those of the form 1, 121, 12321, 1234321, ..., 12345678987654321. The fact that these are the squares of the repunits has led some authors to call Demlo numbers the infinite sequence of these,[14] 1, 121, 12321, ..., 12345678987654321, 1234567900987654321, 123456790120987654321, ..., (sequence A002477 in the OEIS), although one can check these are not Demlo numbers for p = 10, 19, 28, ...

See also

[edit]

Footnotes

[edit]

References

[edit]
[edit]
Revisions and contributorsEdit on WikipediaRead on Wikipedia
from Grokipedia
A repunit (from "repeated unit") is an in base 10 consisting of the digit 1 repeated nn times, mathematically expressed as Rn=10n19R_n = \frac{10^n - 1}{9}. Examples include R1=1R_1 = 1, R2=11R_2 = 11, and R3=111R_3 = 111. The term was coined by Albert H. Beiler in his 1966 book Recreations in the Theory of Numbers, where he also provided the first systematic tabulation of their factorizations. Repunits possess several notable number-theoretic properties. A key relation is that the greatest common divisor of two repunits satisfies gcd(Rm,Rn)=Rgcd(m,n)\gcd(R_m, R_n) = R_{\gcd(m,n)}, which underscores their . They can be generalized to other bases b>1b > 1 as Rn(b)=bn1b1R_n^{(b)} = \frac{b^n - 1}{b-1}, reducing to Mersenne numbers 2n12^n - 1 in base 2. Squares of repunits yield Demlo numbers, such as 112=12111^2 = 121 and 1112=12321111^2 = 12321. Additionally, for n2n \geq 2, the multiplicative order of 10 modulo RnR_n equals nn. Particularly significant are repunit primes, instances where RnR_n is prime, which requires nn to be prime. As of 2025, the proven repunit primes correspond to n=2,19,23,317,1031,49081,86453,109297n = 2, 19, 23, 317, 1031, 49081, 86453, 109297, with the largest (R109297R_{109297}) comprising 109,297 digits. Probable repunit primes (passing strong probabilistic tests but not rigorously proven) extend to larger exponents, including n=270343,5794777,8177207n = 270343, 5794777, 8177207, the latter with over 8 million digits discovered in 2021. It remains an open question whether infinitely many exist.

Definition

Decimal Repunits

A repunit is an consisting entirely of the digit 1 in base 10, such as 1, 11, or 111. The term "repunit," a portmanteau of "repeated" and "unit," was coined by Albert H. Beiler in his 1966 book Recreations in the Theory of Numbers. The nth repunit, denoted RnR_n, is the number with exactly n digits all equal to 1. It can be expressed using the formula Rn=10n19.R_n = \frac{10^n - 1}{9}. This arises from the finite sum Rn=k=0n110k=10n1101R_n = \sum_{k=0}^{n-1} 10^k = \frac{10^n - 1}{10 - 1}. For example:
  • R1=1R_1 = 1 (1 digit),
  • R2=11R_2 = 11 (2 digits),
  • R3=111R_3 = 111 (3 digits),
  • R4=1111R_4 = 1111 (4 digits),
  • R5=11111R_5 = 11111 (5 digits),
  • R6=111111R_6 = 111111 (6 digits).
The formula confirms that RnR_n is always an because 10n110^n - 1 yields a string of n nines (e.g., 1031=99910^3 - 1 = 999), and division by 9 converts nines to ones (e.g., 999/9=111999 / 9 = 111). The 9 reflects the base-10 structure, as repunits represent the repetend of the 1/9=0.11/9 = 0.\overline{1}. The concept of repunits can be generalized to other bases b>1b > 1.

Repunits in Other Bases

A repunit in base bb, where b>1b > 1 is an , is a number consisting of nn digits of 1 in base bb, denoted Rb,nR_{b,n}. This is formally defined as Rb,n=bn1b1R_{b,n} = \frac{b^n - 1}{b - 1}, which represents the sum of a finite : 1+b+b2++bn11 + b + b^2 + \cdots + b^{n-1}. When b=10b = 10, this reduces to the standard decimal repunit. In other bases, examples include R2,3=1112=710R_{2,3} = 111_2 = 7_{10}, R3,2=113=410R_{3,2} = 11_3 = 4_{10}, and R16,2=1116=1710R_{16,2} = 11_{16} = 17_{10}. Notably, for base 2, repunits are Mersenne numbers, as R2,n=2n1R_{2,n} = 2^n - 1.

Properties

Arithmetic Properties

A repunit RnR_n in base 10 is given by the formula Rn=10n19R_n = \frac{10^n - 1}{9}, representing the consisting of nn repeated digits of 1. This expression establishes the basic arithmetic property that 9Rn=10n19 R_n = 10^n - 1. Equivalently, RnR_n is the partial sum of a : Rn=i=0n110i.R_n = \sum_{i=0}^{n-1} 10^i. This form highlights the additive structure inherent in the digit expansion of repunits. Repunits possess exactly nn digits and satisfy 10n1Rn<10n10^{n-1} \leq R_n < 10^n, with Rn10n9R_n \approx \frac{10^n}{9} for large nn, providing a sense of their exponential growth relative to powers of 10. Additionally, since all digits are identical, repunits are palindromic numbers, reading the same forwards and backwards in base 10. Furthermore, every repunit is a Zuckerman number, defined as a positive integer divisible by the product of its digits in base 10, since the product of its digits is 1, which divides any integer. The sequence of repunits forms a strong divisibility sequence over the integers, satisfying gcd(Rm,Rn)=Rgcd(m,n)\gcd(R_m, R_n) = R_{\gcd(m,n)} for all positive integers mm and nn. As a direct consequence, if dd divides nn, then RdR_d divides RnR_n. In this case, with n=kdn = k d, the quotient is RnRd=10n110d1=i=0k110id=1+10d+102d++10(k1)d,\frac{R_n}{R_d} = \frac{10^n - 1}{10^d - 1} = \sum_{i=0}^{k-1} 10^{i d} = 1 + 10^d + 10^{2d} + \cdots + 10^{(k-1)d}, which follows from the geometric series formula applied to the defining expressions for RnR_n and RdR_d.

Algebraic Identities

Repunits possess a natural algebraic structure arising from their polynomial origins. Specifically, the decimal repunit RnR_n, consisting of nn ones, is given by Rn=10n1101R_n = \frac{10^n - 1}{10 - 1}, which is the evaluation at x=10x = 10 of the polynomial xn1x1\frac{x^n - 1}{x - 1}. This representation as a geometric series polynomial underscores the repunit's role in algebraic number theory, facilitating connections to broader polynomial factorizations and evaluations. Several fundamental identities govern the algebraic manipulation of repunits. One such identity is the additive relation Rm+n=Rm10n+RnR_{m+n} = R_m \cdot 10^n + R_n, which captures the effect of concatenating repunit strings in base 10. A related doubling identity follows: R2n=Rn(10n+1)R_{2n} = R_n \cdot (10^n + 1), derived from factoring 102n1=(10n1)(10n+1)10^{2n} - 1 = (10^n - 1)(10^n + 1) and dividing by 9. More generally, repunits satisfy the multiplicative identity Rnm=RnRm(10n)R_{nm} = R_n \cdot R_m^{(10^n)}, where Rm(b)R_m^{(b)} denotes the repunit of length mm in base bb; for instance, the doubling case arises as R2n=RnR2(10n)R_{2n} = R_n \cdot R_2^{(10^n)} since R2(10n)=10n+1R_2^{(10^n)} = 10^n + 1. These identities enable systematic construction and decomposition of larger repunits from smaller ones. Repunits are intimately linked to cyclotomic polynomials via the factorization 10n1=dnΦd(10)10^n - 1 = \prod_{d \mid n} \Phi_d(10), where Φd(x)\Phi_d(x) is the dd-th cyclotomic polynomial. Consequently, Rn=dnd>1Φd(10)R_n = \prod_{\substack{d \mid n \\ d > 1}} \Phi_d(10), providing an algebraic decomposition into irreducible factors over evaluated at 10. This relation is pivotal for understanding the prime factorization of repunits, as the cyclotomic components often yield algebraic factorizations, including Aurifeuillian types for specific lengths where Φd(10)\Phi_d(10) splits non-trivially. The (LTE) finds applications in determining the p-adic valuations of repunits, particularly for primes p dividing RnR_n. For odd primes p not dividing 10, under conditions where the multiplicative order of 10 p divides n but not proper divisors, LTE provides formulas like vp(10n1)=vp(10d1)+vp(n/d)v_p(10^n - 1) = v_p(10^d - 1) + v_p(n/d), where d is the order, allowing computation of vp(Rn)v_p(R_n). This tool is essential for analyzing the exact multiplicity of primes in repunit factorizations without exhaustive computation.

Factorization

Factorization of Decimal Repunits

Decimal repunits Rn=10n19R_n = \frac{10^n - 1}{9} are composite for all composite n>1n > 1, as they possess algebraic factors derived from the cyclotomic polynomials underlying their form; specifically, if dd divides nn with d<nd < n, then RdR_d divides RnR_n, yielding a quotient greater than 1. This structural property ensures that only repunits with prime nn can possibly be prime, though most such cases are also composite. Certain divisibility patterns by small primes recur in these factorizations. For instance, if 3 divides nn, then 3 divides RnR_n, because the sum of its digits equals nn, which is divisible by 3. If nn is even, 11 divides RnR_n, since the alternating sum of digits is zero. Primes like 37 and 271 also appear frequently, often when nn is a multiple of 3 or 5, respectively, reflecting the repetitive nature of the repunit's decimal expansion. The prime factorizations of small decimal repunits illustrate these patterns, with increasing complexity as nn grows. The table below lists the complete factorizations for n=1n = 1 to 20, where primes are shown without exponents if equal to 1, and R2R_2 and R19R_{19} are noted as prime.
nnFactorization
11
211 (prime)
33×373 \times 37
411×10111 \times 101
541×27141 \times 271
63×7×11×13×373 \times 7 \times 11 \times 13 \times 37
7239×4649239 \times 4649
811×73×101×13711 \times 73 \times 101 \times 137
932×37×3336673^2 \times 37 \times 333667
1011×41×271×909111 \times 41 \times 271 \times 9091
1121649×51323921649 \times 513239
123×7×11×13×37×101×99013 \times 7 \times 11 \times 13 \times 37 \times 101 \times 9901
1353×79×26537165353 \times 79 \times 265371653
1411×239×4649×90909111 \times 239 \times 4649 \times 909091
153×31×37×41×271×29061613 \times 31 \times 37 \times 41 \times 271 \times 2906161
1611×17×73×101×137×588235311 \times 17 \times 73 \times 101 \times 137 \times 5882353
172071723×53632223572071723 \times 5363222357
1832×7×11×13×19×37×52579×3336673^2 \times 7 \times 11 \times 13 \times 19 \times 37 \times 52579 \times 333667
19Prime
2011×41×101×271×3541×9091×2796111 \times 41 \times 101 \times 271 \times 3541 \times 9091 \times 27961
Representative examples for medium-sized repunits include R6=3×7×11×13×37R_6 = 3 \times 7 \times 11 \times 13 \times 37, showcasing multiple small prime factors due to the even and multiple-of-3 nature of 6, and R9=32×37×333667R_9 = 3^2 \times 37 \times 333667, where the squared 3 arises from the higher multiplicity in the algebraic decomposition for n=9=32n=9=3^2. Up to n=100n=100, all RnR_n are fully factored into primes, often involving 10–20 distinct factors combining small and large primes. As of November 2025, complete prime factorizations are known for all decimal RnR_n up to n=12,500n=12{,}500, with collaborative efforts such as the Cunningham project and individual computations extending partial factorizations to much larger nn, such as up to n=105,800,000n=105{,}800{,}000 as of September 2025, though some repunits beyond this range retain large composite cofactors.

Factorization of Generalized Repunits

Generalized repunits, denoted Rb,n=bn1b1R_{b,n} = \frac{b^n - 1}{b - 1} for base b>1b > 1 and positive nn, admit a fundamental in terms of s. Specifically, bn1=dnΦd(b)b^n - 1 = \prod_{d \mid n} \Phi_d(b), where Φd(x)\Phi_d(x) is the dd-th , leading to Rb,n=dn,d>1Φd(b)R_{b,n} = \prod_{d \mid n, \, d > 1} \Phi_d(b). This decomposition provides an algebraic structure that reveals the primitive prime factors associated with the divisors of nn, facilitating systematic approaches beyond trial division. When nn is composite, further algebraic factorizations are possible. For any dd of nn, Rb,dR_{b,d} divides Rb,nR_{b,n}, and the is given by Rb,n/Rb,d=1+bd+b2d++bndR_{b,n} / R_{b,d} = 1 + b^d + b^{2d} + \cdots + b^{n - d}, where the sum has n/dn/d terms. This identity allows recursive decomposition: for instance, if n=kmn = k m, then Rb,n=Rb,mj=1k1(1+bjm)R_{b,n} = R_{b,m} \cdot \prod_{j=1}^{k-1} (1 + b^{j m}). Such factorizations are particularly useful when bb is a perfect power, as they yield non-trivial algebraic splits even for prime nn; for example, if b=ckb = c^k with k>1k > 1, then Rb,nR_{b,n} often factors into terms involving lower powers of cc. Illustrative examples highlight these methods. In base 2, R2,n=2n1R_{2,n} = 2^n - 1, known as Mersenne numbers, which factor according to the cyclotomic product and have been extensively studied for their prime factors when nn is prime. In base 3, small cases include R3,2=4=22R_{3,2} = 4 = 2^2 (composite) and R3,3=13R_{3,3} = 13 (prime), while R3,4=40=23×5R_{3,4} = 40 = 2^3 \times 5 demonstrates the composite divisor factorization with d=2d=2. For n=6n=6, R3,6=364=22×7×13R_{3,6} = 364 = 2^2 \times 7 \times 13, aligning with the product Φ2(3)Φ3(3)Φ6(3)=4×13×7\Phi_2(3) \Phi_3(3) \Phi_6(3) = 4 \times 13 \times 7. Beyond basic cyclotomic and divisor-based splits, generalized repunits benefit from aurifeuillean-like identities, which provide unexpected non-trivial factorizations of bn1b^n - 1 or its repunit quotients for specific bases and exponents. These identities, extensions of classical aurifeuillean factorizations for forms like 22n+1+12^{2n+1} + 1, apply to various bb by identifying when cyclotomic factors Φd(b)\Phi_d(b) admit further algebraic decomposition into integer polynomials evaluated at bb. For instance, in bases where bb satisfies certain quadratic or higher relations, such as powers of small integers, these yield efficient splits comparable to those for base-10 repunits but generalized across bases. Factoring large base-bb repunits presents significant computational challenges, as the numbers grow exponentially and algebraic methods alone may not suffice for complete . In base 4, R4,nR_{4,n} leverages the perfect power structure (4=224 = 2^2) for initial splits like R4,n=(2n1)(2n+1)3R_{4,n} = \frac{(2^n - 1)(2^n + 1)}{3}, but evaluating and factoring the resulting large terms requires advanced techniques such as methods or . Similarly, in base 16 (16=2416 = 2^4), algebraic identities from the power structure allow partial , yet the immense size—for example, R16,10R_{16,10} has over 10 digits in base 10—demands high-performance sieving and multiprecision arithmetic, often leaving probable primes unverified without specialized primality tests. These difficulties underscore the need for tailored algorithms in software to handle non-decimal bases effectively.

Repunit Primes

Decimal Repunit Primes

A decimal repunit prime is a repunit in base 10, denoted Rn=10n19R_n = \frac{10^n - 1}{9}, that is also a . These numbers consist entirely of the digit 1 repeated nn times and are among the rarest forms of large primes due to their repetitive structure, which often facilitates for composite cases. As of November 2025, exactly eight such primes have been rigorously proven, with the largest having 109,297 digits. Additionally, three probable primes (PRPs) are known, identified through probabilistic testing but not yet formally proven; the largest of these has 8,177,207 digits. The proven decimal repunit primes are listed in the following table, ordered by increasing nn. For small nn, primality can be verified using elementary methods like division up to the of RnR_n, which is feasible for n317n \leq 317 given the computational resources available at the time of discovery. Larger ones, such as R1031R_{1031}, required more advanced techniques like the Lucas-Lehmer test adapted for repunits or early implementations of methods.
nnDigitsDiscovery YearDiscoverer(s) / Prover(s)
22AncientKnown since antiquity (e.g., Euclid's era)
19191910sProven via trial division
23231910sProven via trial division
3173171950sProven via early computational checks
103110311985Harvey Dubner, Hugh C. Williams (proven)
49081490811999Harvey Dubner (PRP); Paul Underwood (2022, ECPP proof)
86453864532000Lew Baxter (PRP); Andreas Enge (2023, ECPP proof)
1092971092972007J. Bourdelais, Harvey Dubner (PRP); Paul Underwood, Andreas Enge (2025, ECPP proof)
Testing for primality becomes increasingly challenging for large nn because RnR_n grows exponentially in size, making exhaustive factorization or direct proof computationally intensive. Initial screening often uses probabilistic primality tests like the Miller-Rabin algorithm, implemented in software such as , to identify PRP candidates efficiently across distributed networks. Rigorous proof for these giants then employs the Primality Proving (ECPP) algorithm, which provides deterministic verification by constructing a chain of elliptic curve congruences, as used for R49081R_{49081}, R86453R_{86453}, and R109297R_{109297}. No new proven decimal repunit primes have been confirmed since May 2025. The known probable decimal repunit primes, which have passed strong probabilistic tests but await formal proof, include R270343R_{270343} (discovered July 2007 by Maksym Voznyy and Anton Budnyy), R5794777R_{5794777} (May 2021 by Ryan Propper and Serge Batalov), and R8177207R_{8177207} (also May 2021 by Propper and Batalov). These were found through coordinated searches using clusters, highlighting the role of collaborative efforts in exploring such sparse prime forms. Efforts to prove these continue, but their immense size—over 5 million digits each—poses significant barriers.

Generalized Repunit Primes

Generalized repunit primes are prime numbers of the form Rb,n=bn1b1R_{b,n} = \frac{b^n - 1}{b - 1} for integers b>1b > 1 and n>1n > 1, where the number consists entirely of the digit 1 when written in base bb. These extend the concept of repunits beyond base 10 to arbitrary bases greater than 1. A key case occurs in base b=2b = 2, where R2,n=2n1R_{2,n} = 2^n - 1 yields the Mersenne numbers; such a repunit is prime if and only if it is a Mersenne prime, which requires nn to be prime, though not conversely. It is conjectured that infinitely many Mersenne primes exist. As of November 2025, the largest known Mersenne prime is 213627984112^{136279841} - 1, with 41,024,320 decimal digits, discovered by the Great Internet Mersenne Prime Search (GIMPS). In bases other than 2, repunit primes are less frequent and often limited. For base 3, R3,2=4R_{3,2} = 4 is composite and R3,1=1R_{3,1} = 1 is trivial, but non-trivial examples include R3,3=13R_{3,3} = 13, which is prime; known exponents nn yielding primes are 3, 7, 13, 71, and 103. In base 4, the sole known repunit prime is the non-trivial R4,2=5R_{4,2} = 5. Base 6 features R6,2=7R_{6,2} = 7 as prime. Broader searches up to base 20 reveal sporadic occurrences; for example, in base 11, repunit primes exist for certain larger prime exponents such as n=17; overall, many bases have few or no known repunit primes beyond small n. repunit primes represent a specific for b=10b = 10. The smallest non-trivial repunit primes per base up to 10 are summarized below, highlighting base-specific patterns where small n often suffice for primality in even bases but require larger n in odd bases greater than 3:
Base bbSmallest n>1n > 1Prime Rb,nR_{b,n}
223
3313
425
5331
627
752801
8373
9None known-
10211
These values are verified as prime, with base 9 lacking any confirmed repunit primes for n>1n > 1 due to algebraic factorizations in powers of 3. Repunit primes in base bb connect to through primitive prime divisors of bn1b^n - 1. Specifically, when nn is prime, Rb,n=Φn(b)R_{b,n} = \Phi_n(b), the evaluation of the nn-th at bb; if this is prime pp, then the multiplicative order of bb pp is exactly nn, meaning pp is a primitive prime divisor of bn1b^n - 1 of order nn. This property links repunit primes to the structure of cyclotomic extensions and the factorization of bn1b^n - 1 into cyclotomic polynomials, aiding searches and proofs of compositeness for larger candidates.

Conjectures and Open Problems

One of the central conjectures in the study of repunit primes is that there are infinitely many such primes in base 10, where a repunit prime Rn=10n19R_n = \frac{10^n - 1}{9} is prime for infinitely many positive integers nn. This is supported by the observed distribution of the known repunit primes, which aligns with the expected rarity predicted by the for numbers of this form, suggesting a logarithmic that decreases with increasing nn but remains positive overall. A generalization of this extends to arbitrary bases: for any fixed base b>1b > 1, there are infinitely many nn such that the generalized repunit Rb,n=bn1b1R_{b,n} = \frac{b^n - 1}{b - 1} is prime. This broader statement remains unproven, including specifically for b=10b = 10, and its resolution would have implications across , particularly in understanding the primality of cyclotomic-related sequences. Open problems surrounding repunit primes include determining whether R109297R_{109297}, proven prime in May 2025 via the primality proving method, is the largest definitively established base-10 repunit prime to date. Larger candidates, such as R8177207R_{8177207}, have been verified as probable primes through Miller-Rabin and other probabilistic tests but lack a complete deterministic proof, leaving their status unresolved. While the mainstream view in favors the infinitude of base-10 repunit primes, a small number of non-peer-reviewed papers have proposed arguments for their finiteness, often relying on density arguments or unverified methods; however, these claims have not gained acceptance due to flaws in their proofs and contradiction with empirical evidence from larger probable primes. The infinitude conjecture also intersects with broader analytic frameworks, such as the , which posits infinitely many primes from irreducible s with positive leading coefficients and no fixed prime divisors; although repunits are not directly polynomial in nn, related primality tests for repunit-like forms draw indirect implications from such hypotheses in exploring algebraic factorizations.

History

Early History

Interest in numbers consisting entirely of the digit 1, now known as , emerged in the as part of broader efforts in to identify primes and explore factorizations. These "strings of ones," as they were informally called before formal , attracted attention due to their connection to the expansions of reciprocals and cyclic numbers. For instance, the two-digit repunit 11 was recognized as prime long before systematic study. By the late , mathematicians had begun factoring larger examples, revealing algebraic patterns tied to the divisors of 10n110^n - 1. This work laid the groundwork for understanding repunit structure, though the numbers were not yet termed repunits. Early prime discoveries included the 19-digit repunit R19R_{19}, proved prime by Oscar Hoppe in 1916 after extensive manual computation. In the early , further progress in prime hunting identified additional repunit primes, such as R23R_{23}, independently verified by D. N. Lehmer and M. Kraitchik in 1929. These findings highlighted the rarity of such primes and spurred interest in their properties among recreational and theoretical mathematicians. Pre-1960s literature often referred to them simply as repeated units in discussions of probable primes and factorization challenges. Around 1966, R317R_{317} was identified as a probable prime, and in 1978, Hugh C. Williams proved it to be prime. The term "repunit," a contraction of "repeated unit," was coined by Albert H. Beiler in his 1966 book Recreations in the Theory of Numbers, where he popularized the concept and provided the first tabulated list of known factors for decimal repunits up to significant lengths. Beiler's work marked a turning point, shifting informal observations into a more structured field of study.

Modern Developments

In the and , significant progress in repunit prime research was driven by computational efforts, culminating in the proof that R1031R_{1031}, a 1031-digit repunit, is prime, established by Harvey Dubner and Hugh C. Williams using advanced primality testing methods. This marked the largest proven repunit prime at the time and highlighted the feasibility of verifying such large numbers through deterministic algorithms. Building on this, distributed computing initiatives in the early 2000s identified additional probable primes, such as R49081R_{49081} in 1999 by Dubner, which was later rigorously proven prime in 2022 by Paul Underwood using the ECPP implementation Primo. Similarly, R86453R_{86453}, discovered as a probable prime in 2000 by Lew Baxter, was proven prime in 2023 by Andreas Enge employing complex multiplication techniques integrated with ECPP. The 2010s and early 2020s saw further advances through adaptations of frameworks, including those inspired by the (GIMPS). In May 2021, Ryan Propper and Serge Batalov announced R8177207R_{8177207}, a with over 8 million digits, identified via optimized probabilistic tests on clusters. Enhancements in ECPP, such as improved elliptic curve selection and certificate generation, have enabled efficient verification of these massive candidates, though no new proven base-10 repunit primes have emerged since 2023; instead, searches have focused on testing even larger s exceeding 10 million digits. Theoretically, a 2021 paper by and Graves explored connections between repunits and the , demonstrating that under the conjecture with ϵ=1/6\epsilon = 1/6, only finitely many s-Cullen numbers can be repunits of length three or greater, aside from known exceptions, thus implying bounds on overlaps between repunit sequences and other special forms. As of November 2025, ongoing searches continue through projects like PrimeGrid, which leverage for prime hunting in special forms, increasingly incorporating GPU acceleration for faster sieving and probabilistic primality testing of repunit candidates.

Numbers of the form (102n1)/99(10^{2n} - 1)/99

Numbers of the form (102n1)/99(10^{2n} - 1)/99 form a sequence of integers characterized by digits alternating between 1 and 0, starting and ending with 1, such as 1, 101, 10101, and 1010101 (OEIS A094028). These numbers feature an increasing number of 1's separated by single 0's, making them a variant of repunit-like structures with embedded zeros. The nth term DnD_n, consisting of n ones, is given by the closed-form formula Dn=102n199.D_n = \frac{10^{2n} - 1}{99}. This expression arises from the geometric series sum k=0n1102k\sum_{k=0}^{n-1} 10^{2k}, reflecting the positions of the 1's at even powers of 10. For instance, D1=1D_1 = 1, D2=101D_2 = 101, D3=10101D_3 = 10101, and D4=1010101D_4 = 1010101. These numbers relate to standard decimal repunits Rm=(10m1)/9R_m = (10^m - 1)/9 through the identity Dn=R2n/11D_n = R_{2n} / 11, as 11 divides R2nR_{2n} for n1n \geq 1. These numbers exhibit interesting factorization properties, with primality limited to small values. The number D1=1D_1 = 1 is trivial and not considered prime, while D2=101D_2 = 101 is prime. Larger terms are composite: for example, D3=10101=3×7×13×37D_3 = 10101 = 3 \times 7 \times 13 \times 37, D4=1010101=101×73×137D_4 = 1010101 = 101 \times 73 \times 137, and D5=101010101=41×2463661D_5 = 101010101 = 41 \times 2463661. In general, for n>2n > 2, DnD_n factors algebraically, often using the form (102n1)/99=[(10n1)/9]×[(10n+1)/11](10^{2n} - 1)/99 = [(10^n - 1)/9] \times [(10^n + 1)/11], where both factors exceed 1 when n is odd and greater than 1, or via other cyclotomic decompositions for even n. It is known that 101 is the only prime in the sequence. The study of these numbers originates in recreational mathematics, with the sequence appearing in problems exploring primality and factorization patterns, such as in the 1989 Putnam exam (problem A1).

Other Repdigit Numbers

Repdigit numbers are positive integers in base 10 composed entirely of the same digit dd, where dd ranges from 1 to 9, repeated nn times. These generalize repunits, which correspond to the case d=1d=1. The value of such a repdigit is given by the formula d×10n19=d×Rnd \times \frac{10^n - 1}{9} = d \times R_n, where RnR_n denotes the repunit of nn ones. For d>1d > 1 and n>1n > 1, repdigits are always composite, as they factor non-trivially into dd and RnR_n, both integers greater than 1. Consequently, the only repdigit primes are the single-digit primes 2, 3, 5, and 7. This starkly contrasts with repunits, where multi-digit primes exist but are rare, with only finitely many known as of 2025, and it remains an open question whether there are infinitely many. The factorization properties of these repdigits inherit much from those of repunits, often involving evaluations of cyclotomic polynomials at 10, scaled by dd. For example, the repdigit 888 (three 8's) equals 8×111=8×3×378 \times 111 = 8 \times 3 \times 37, and longer all-8's repdigits follow analogous algebraic factorizations derived from the cyclotomic decomposition of RnR_n. In general, while dd may introduce additional prime factors or share divisors with components of RnR_n, the core structure remains multiplicative and tied to the divisor properties of nn.

References

  1. https://proofwiki.org/wiki/Repunit_is_Zuckerman_Number
Add your contribution
Related Hubs
User Avatar
No comments yet.