# Repdigit

Repdigits are the representation in base $B$ of the number $x\frac{B^y -1}{B-1}$ where $0 is the repeated digit and $y$ is the number of repetitions. For example, the repdigit 77 in base 10 is $7\frac{10^2-1}{10-1}$.