OFFSET
1,1
LINKS
Kenny Lau, Table of n, a(n) for n = 1..10000
EXAMPLE
7^3 == 3 (mod 10).
87^3 == 3 (mod 100).
587^3 == 3 (mod 1000).
4587^3 == 3 (mod 10000).
34587^3 == 3 (mod 100000).
134587^3 == 3 (mod 1000000).
PROG
(PARI) n=0; for(i=1, 100, m=3; for(x=0, 9, if(((n+(x*10^(i-1)))^3)%(10^i)==m, n=n+(x*10^(i-1)); print1(x", "); break)))
(Python) n=7; p=1; i=1; exec("print(i, n//p); i+=1; p*=10; n+=n**3//p*7%10*p; "*10000) # Kenny Lau, Jun 07 2018
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Aswini Vaidyanathan, May 07 2013
STATUS
approved