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) + 3 * b(n-1)^3 - 17 mod 10^n for n > 1, then a(n) = (b(n+1) - b(n))/10^n.
EXAMPLE
9^3 == 9 (mod 10).
79^3 == 39 (mod 10^2).
179^3 == 339 (mod 10^3).
6179^3 == 3339 (mod 10^4).
26179^3 == 33339 (mod 10^5).
826179^3 == 333339 (mod 10^6).
PROG
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Seiichi Manyama, Aug 10 2019
STATUS
approved