OFFSET
0,2
FORMULA
a(0) = 0 and a(1) = 6, a(n) = a(n-1) + 4 * (a(n-1)^5 - 6) mod 7^n for n > 1.
EXAMPLE
a(1) = ( 6)_7 = 6,
a(2) = ( 26)_7 = 20,
a(3) = ( 526)_7 = 265,
a(4) = (5526)_7 = 1980.
PROG
(PARI) {a(n) = truncate((6+O(7^n))^(1/5))}
CROSSREFS
KEYWORD
nonn
AUTHOR
Seiichi Manyama, Aug 03 2019
STATUS
approved