OFFSET
0,2
COMMENTS
For n > 0, a(n) is the unique number k in [1, 7^n] and congruent to 3 mod 7 such that k^3 - 6 is divisible by 7^n.
For k not divisible by 7, k is a cube in 7-adic field if and only if k == 1, 6 (mod 7). If k is a cube in 7-adic field, then k has exactly three cubic roots.
LINKS
Wikipedia, p-adic number
FORMULA
EXAMPLE
The unique number k in [1, 7^2] and congruent to 3 modulo 7 such that k^3 - 6 is divisible by 7^2 is k = 24, so a(2) = 24.
The unique number k in [1, 7^3] and congruent to 3 modulo 7 such that k^3 - 6 is divisible by 7^3 is k = 122, so a(3) = 122.
PROG
(PARI) a(n) = lift(sqrtn(6+O(7^n), 3) * (-1+sqrt(-3+O(7^n)))/2)
CROSSREFS
KEYWORD
nonn
AUTHOR
Jianing Song, Aug 27 2019
STATUS
approved