OFFSET
0,2
FORMULA
a(0) = 0 and a(1) = 4, a(n) = a(n-1) + 3 * (a(n-1)^3 - 4) mod 5^n for n > 1.
EXAMPLE
a(1) = ( 4)_5 = 4,
a(2) = ( 14)_5 = 9,
a(3) = ( 214)_5 = 59,
a(4) = (4214)_5 = 559.
PROG
(PARI) {a(n) = truncate((4+O(5^n))^(1/3))}
CROSSREFS
KEYWORD
nonn
AUTHOR
Seiichi Manyama, Aug 03 2019
STATUS
approved