OFFSET
0,1
COMMENTS
LINKS
Seiichi Manyama, Table of n, a(n) for n = 0..10000
BCMATH Congruence Programs, Finding a p-adic square root of a quadratic residue (mod p), p an odd prime..
FORMULA
EXAMPLE
a(4) = -212*(2*364)^3 (mod 5) = -2*(2*(-1))^3 (mod 5) = 1.
PROG
(PARI) a(n) = truncate(-sqrt(-4+O(5^(n+1))))\5^n; \\ Michel Marcus, Mar 04 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Wolfdieter Lang, Mar 02 2016
STATUS
approved