Inrecreational mathematics, arepdigit or sometimesmonodigit[1] is anatural number composed of repeated instances of the samedigit in apositional number system (often implicitlydecimal). The word is aportmanteau of "repeated" and "digit".Examples are11,666,4444, and999999. All repdigits arepalindromic numbers and are multiples ofrepunits. Other well-known repdigits include therepunit primes and in particular theMersenne primes (which are repdigits when represented in binary).
Any such number can be represented as follows
Where nn is the concatenation of n with n. k the number of concatenated n.
nn can be represented mathematically as
for n = 23 and k = 5, the formula will look like this
However, 2323232323 is not a repdigit.
Also, any number can be decomposed into the sum and difference of the repdigit numbers.
For example 3453455634 = 3333333333 + (111111111 + (9999999 - (999999 - (11111 + (77 + (2))))))
Repdigits are the representation inbase of the number where is the repeated digit and is the number of repetitions. For example, the repdigit 77777 in base 10 is.
A variation of repdigits calledBrazilian numbers are numbers that can be written as a repdigit in some base, not allowing the repdigit 11, and not allowing the single-digit numbers (or all numbers will be Brazilian). For example, 27 is a Brazilian number because 27 is the repdigit 33 in base 8, while 9 is not a Brazilian number because its only repdigit representation is 118, not allowed in the definition of Brazilian numbers. The representations of the form 11 are considered trivial and are disallowed in the definition of Brazilian numbers, because all natural numbersn greater than two have the representation 11n − 1.[2] The first twenty Brazilian numbers are
On some websites (includingimageboards like4chan), it is considered an auspicious event when the sequentially-assigned ID number of a post is a repdigit, such as 22,222,222, which is one type of "GET"[clarification needed] (others including round numbers like 34,000,000, or sequential digits like 12,345,678).[3][4]
The concept of a repdigit has been studied under that name since at least 1974;[5] earlierBeiler (1966) called them "monodigit numbers".[1] The Brazilian numbers were introduced later, in 1994, in the 9th Iberoamerican Mathematical Olympiad that took place inFortaleza, Brazil. The first problem in this competition, proposed by Mexico, was as follows:[6]
A numbern > 0 is called "Brazilian" if there exists an integerb such that1 <b <n – 1 for which the representation ofn in baseb is written with all equal digits. Prove that 1994 is Brazilian and that 1993 is not Brazilian.
For a repdigit to beprime, it must be arepunit (i.e. the repeating digit is 1) and have a prime number of digits in its base (except trivial single-digit numbers), since, for example, the repdigit 77777 is divisible by 7, in any base > 7. In particular, as Brazilian repunits do not allow the number of digits to be exactly two, Brazilian primes must have an odd prime number of digits.[7] Having an odd prime number of digits is not enough to guarantee that a repunit is prime; for instance, 21 = 1114 = 3 × 7 and 111 = 11110 = 3 × 37 are not prime. In any given baseb, every repunit prime in that base with the exception of 11b (if it is prime) is a Brazilian prime. The smallest Brazilian primes are
Whilethe sum of the reciprocals of the prime numbers is a divergent series, the sum of the reciprocals of the Brazilian prime numbers is a convergent series whose value, called the "Brazilian primes constant", is slightly larger than 0.33 (sequenceA306759 in theOEIS).[8] This convergence implies that the Brazilian primes form a vanishingly small fraction of all prime numbers. For instance, among the 3.7×1010 prime numbers smaller than 1012, only 8.8×104 are Brazilian.
Thedecimal repunit primes have the form for the values ofn listed inOEIS: A004023. It has been conjectured that there are infinitely many decimal repunit primes.[9] Thebinary repunits are theMersenne numbers and the binary repunit primes are theMersenne primes.
It is unknown whether there are infinitely many Brazilian primes. If theBateman–Horn conjecture is true, then for every prime number of digits there would exist infinitely many repunit primes with that number of digits (and consequentially infinitely many Brazilian primes). Alternatively, if there are infinitely many decimal repunit primes, or infinitely many Mersenne primes, then there are infinitely many Brazilian primes.[10] Because a vanishingly small fraction of primes are Brazilian, there are infinitely many non-Brazilian primes, forming the sequence
If aFermat number is prime, it is not Brazilian, but if it is composite, it is Brazilian.[11]Contradicting a previous conjecture,[12] Resta, Marcus, Grantham, and Graves found examples ofSophie Germain primes that are Brazilian, the first one is 28792661 = 1111173.[13]
The only positive integers that can be non-Brazilian are 1, 6, theprimes, and thesquares of the primes, for every other number is the product of two factorsx andy with 1 <x <y − 1, and can be written asxx in basey − 1.[14] If a square of a primep2 is Brazilian, then primep must satisfy theDiophantine equation
Norwegian mathematicianTrygve Nagell has proved[15] that this equation has only one solution whenp is prime corresponding to(p,b,q) = (11, 3, 5). Therefore, the only squared prime that is Brazilian is 112 = 121 = 111113.There is also one more nontrivial repunit square, the solution (p,b,q) = (20, 7, 4) corresponding to 202 = 400 = 11117, but it is not exceptional with respect to the classification of Brazilian numbers because 20 is not prime.
Perfect powers that are repunits with three digits or more in some baseb are described by theDiophantine equation of Nagell andLjunggren[16]
Yann Bugeaud and Maurice Mignotte conjecture that only three perfect powers are Brazilian repunits. They are 121, 343, and 400 (sequenceA208242 in theOEIS), the two squares listed above and the cube 343 = 73 = 11118.[17]
Some popular media publications have published articles suggesting that repunit numbers havenumerological significance, describing them as "angel numbers".[19][20][21]