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 6 modulo 13.
A322090 is the approximation (congruent to 7 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 - A322090(n).
a(n) = Sum_{i=0..n-1} A322091(i)*13^i.
a(n) == L(13^n,6) (mod 13^n) == (3 + sqrt(10))^(13^n) + (3 - sqrt(10))^(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
6^2 = 36 = 3*13 - 3.
45^2 = 2025 = 12*13^2 - 3.
2073^2 = 4297329 = 1956*13^3 - 3.
PROG
(PARI) a(n) = truncate(sqrt(-3+O(13^n)))
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Jianing Song, Nov 26 2018
STATUS
approved