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