OFFSET
0,2
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) = 1, 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
1^3 == 1 (mod 10).
21^3 == 61 (mod 10^2).
821^3 == 661 (mod 10^3).
3821^3 == 6661 (mod 10^4).
73821^3 == 66661 (mod 10^5).
173821^3 == 666661 (mod 10^6).
PROG
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Seiichi Manyama, Aug 11 2019
STATUS
approved