OFFSET
0,3
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 1 modulo 5.
A324024 is the approximation (congruent to 4 mod 5) of another square root of 6 over the 5-adic field.
LINKS
Wikipedia, p-adic number
FORMULA
EXAMPLE
16^2 = 256 = 10*5^2 + 6 = 2*5^3 + 6;
516^2 = 266256 = 426*5^4 + 6;
1766^2 = 3118756 = 998*5^5 + 6.
PROG
(PARI) a(n) = truncate(sqrt(6+O(5^n)))
CROSSREFS
Approximations of 5-adic square roots:
this sequence, A324024 (sqrt(6)).
KEYWORD
nonn
AUTHOR
Jianing Song, Sep 07 2019
STATUS
approved