A repunit is a number like 11, 111, or 1111. It only has the digit 1 in it. It is 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.
A repunit prime is a repunit that is also a prime number. Primes that are repunits in base-2 are Mersenne primes.
The base-b repunits can be written as this where b is the base and n is the number that you are checking in whether or not it is a repunit:
This means that the number Rn(b) is made of n copies of the digit 1 in base-b representation. The first two repunits base-b for n = 1 and n = 2 are
The first of repunits in base-10 are with
Base-2 repunits are also Mersenne numbers Mn = 2n − 1. They start with
Prime factors that are red are "new factors" that haven't been mentioned before. Basically, the prime factor divides Rn but does not divide Rk for all k < n. (sequence A102380 in the OEIS)
|
|
|
The smallest prime factors of Rn for n > 1 are
A number which consists of a repeated of a single digit is sometimes called a monodigit number, and for convenience the author has used the term “repunit number” (repeated unit) to represent monodigit numbers consisting solely of the digit 1.