OFFSET
0,2
COMMENTS
For n > 0, a(n) is the unique solution to x^2 == -2 (mod 17^n) in the range [0, 17^n - 1] and congruent to 7 modulo 17.
A322564 is the approximation (congruent to 10 mod 17) of another square root of -2 over the 17-adic field.
LINKS
Wikipedia, p-adic number
FORMULA
EXAMPLE
7^2 = 49 = 3*17 - 2;
24^2 = 576 = 2*17^2 - 2;
3492^2 = 12194064 = 2482*17^3 - 2.
MATHEMATICA
{0}~Join~Table[First@Select[PowerModList[-2, 1/2, 17^k], Mod[#, 17]==7&], {k, 20}] (* Giorgos Kalogeropoulos, Sep 14 2022 *)
PROG
(PARI) a(n) = truncate(sqrt(-2+O(17^n)))
CROSSREFS
KEYWORD
nonn
AUTHOR
Jianing Song, Aug 29 2019
STATUS
approved