OFFSET
0,2
COMMENTS
For n > 0, a(n) is the unique solution to x^2 == -6 (mod 5^n) in the range [0, 5^n - 1] and congruent to 2 modulo 5.
A324028 is the approximation (congruent to 3 mod 5) of another square root of 6 over the 5-adic field.
LINKS
Wikipedia, p-adic number
FORMULA
EXAMPLE
12^2 = 144 = 6*5^2 - 6;
37^2 = 1369 = 11*5^3 - 6;
162^2 = 26244 = 42*5^4 - 6.
PROG
(PARI) a(n) = truncate(sqrt(-6+O(5^n)))
CROSSREFS
Approximations of 5-adic square roots:
this sequence, A324028 (sqrt(-6));
KEYWORD
nonn
AUTHOR
Jianing Song, Sep 07 2019
STATUS
approved