OFFSET
0,1
LINKS
Seiichi Manyama, Table of n, a(n) for n = 0..10000
FORMULA
Define the sequence {b(n)} by the recurrence b(0) = 0 and b(1) = 9, b(n) = b(n-1) + 7 * (9 * b(n-1)^3 - 61) mod 10^n for n > 1, then a(n) = (b(n+1) - b(n))/10^n.
EXAMPLE
9^3 == 9 (mod 10).
9^3 == 29 (mod 10^2).
509^3 == 229 (mod 10^3).
509^3 == 2229 (mod 10^4).
50509^3 == 22229 (mod 10^5).
450509^3 == 222229 (mod 10^6).
PROG
CROSSREFS
KEYWORD
nonn
AUTHOR
Seiichi Manyama, Aug 09 2019
STATUS
approved