OFFSET
1,1
COMMENTS
a(n) is the unique positive integer less than 10^n such that a(n) is divisible by 2^n and a(n) + 1 is divisible by 5^n. - Eric M. Schmidt, Sep 01 2012
LINKS
Robert Israel, Table of n, a(n) for n = 1..996
FORMULA
a(n) = (5^(2^n) mod 10^n) - 1.
a(n)^3 == a(n) (mod 10^n).
a(n-1) == a(n) (mod 10^(n-1)). - Robert Israel, Mar 13 2025
MAPLE
f:= n -> 2&^(2*5^(n-1)) mod 10^n:
map(f, [$1..100]); # Robert Israel, Mar 13 2025
MATHEMATICA
Table[PowerMod[5, 2^n, 10^n], {n, 20}]-1 (* Harvey P. Dale, Dec 17 2017 *)
PROG
(SageMath) def A216092(n) : return crt(0, -1, 2^n, 5^n) # Eric M. Schmidt, Sep 01 2012
CROSSREFS
KEYWORD
nonn
AUTHOR
V. Raman, Sep 01 2012
STATUS
approved
