OFFSET
0,2
COMMENTS
For n > 0, a(n) is the unique solution to x^2 == -3 (mod 13^n) in the range [0, 13^n - 1] and congruent to 7 modulo 13.
A322089 is the approximation (congruent to 6 mod 13) of another square root of -3 over the 13-adic field.
LINKS
Wikipedia, p-adic number
FORMULA
For n > 0, a(n) = 13^n - A322089(n).
a(n) = Sum_{i=0..n-1} A322092(i)*13^i.
a(n) == L(13^n,7) (mod 13^n) == ((7 + sqrt(53))/2)^(13^n) + ((7 - sqrt(53))/2)^(13^n) (mod 13^n), where L(n,x) denotes the n-th Lucas polynomial, the n-th row polynomial of A114525. - Peter Bala, Dec 05 2022
EXAMPLE
7^2 = 49 = 4*13 - 3.
124^2 = 15376 = 91*13^2 - 3 = 7*13^3 - 3.
13306^2 = 177049636 = 6199*13^4 - 3.
PROG
(PARI) a(n) = truncate(-sqrt(-3+O(13^n)))
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Jianing Song, Nov 26 2018
STATUS
approved