In recreational mathematics, a repdigit or sometimes monodigit is a natural number composed of repeated instances of the same digit in a positional number system (often implicitly decimal). The word repdigit is a portmanteau, formed from repeated digit.
Examples are 11, 666, 4444, and 999999. All repdigits are palindromic numbers and are multiples of repunits. Two of the most famous repdigits are 666, referred to in Christian Eschatology as the number of the beast, and 777, which most people have dubbed it as a "lucky number" as it is used on most slot machines to identify a jackpot. Other well-known repdigits include the repunit primes and in particular the Mersenne primes (when represented in binary).
Repdigits are the representation in base of the number where is the repeated digit and is the number of repetitions. For example, the repdigit 77 in base 10 is .