login
A318962
Digits of one of the two 2-adic integers sqrt(-7) that ends in 01.
9
1, 0, 1, 0, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1
OFFSET
0,1
COMMENTS
Over the 2-adic integers there are 2 solutions to x^2 = -7, one ends in 01 and the other ends in 11. This sequence gives the former one. See A318960 for detailed information.
LINKS
FORMULA
a(0) = 1, a(1) = 0; for n >= 2, a(n) = 0 if A318960(n)^2 + 7 is divisible by 2^(n+2), otherwise 1.
a(n) = 1 - A318963(n) for n >= 1.
For n >= 2, a(n) = (A318960(n+1) - A318960(n))/2^n.
EXAMPLE
...10110001110011100100110001100000010110101.
PROG
(PARI) a(n) = truncate(-sqrt(-7+O(2^(n+2))))\2^n
CROSSREFS
See A318960 for a list of sequences related to p-adic roots to quadratic polynomials.
Sequence in context: A155029 A155031 A134540 * A128430 A176330 A363914
KEYWORD
nonn,base
AUTHOR
Jianing Song, Sep 06 2018
EXTENSIONS
Corrected by Jianing Song, Aug 28 2019
STATUS
approved