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) = 7, b(n) = b(n-1) + 9 * (3 * b(n-1)^3 + 11) mod 10^n for n > 1, then a(n) = (b(n+1) - b(n))/10^n.
EXAMPLE
7^3 == 3 (mod 10).
67^3 == 63 (mod 10^2).
767^3 == 663 (mod 10^3).
7767^3 == 6663 (mod 10^4).
47767^3 == 66663 (mod 10^5).
147767^3 == 666663 (mod 10^6).
PROG
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Seiichi Manyama, Aug 11 2019
STATUS
approved