OFFSET
3,1
EXAMPLE
In the decimal number system (n=10), powers of numbers smaller than 71 cannot end with 1111. On the other hand, 71^13 == 1111 (mod 10^4), 71^1513 == 11111 (mod 10^5), etc. and it can be shown that 71^k can end in any number of ones. So a(10)=71.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Max Alekseyev, Sep 11 2013
STATUS
approved