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) = 3, b(n) = b(n-1) + 3 * (9 * b(n-1)^3 + 17) mod 10^n for n > 1, then a(n) = (b(n+1) - b(n))/10^n.
EXAMPLE
3^3 == 7 (mod 10).
83^3 == 87 (mod 10^2).
383^3 == 887 (mod 10^3).
1383^3 == 8887 (mod 10^4).
21383^3 == 88887 (mod 10^5).
921383^3 == 888887 (mod 10^6).
PROG
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Seiichi Manyama, Aug 11 2019
STATUS
approved