login
A309474
Digits of one of the two 3-adic integers sqrt(-1/2).
3
1, 2, 1, 2, 2, 1, 2, 0, 1, 1, 1, 0, 2, 1, 2, 0, 1, 2, 0, 1, 0, 0, 1, 2, 0, 2, 1, 1, 1, 2, 2, 2, 1, 0, 1, 2, 1, 2, 1, 1, 2, 1, 2, 0, 0, 1, 2, 1, 1, 1, 0, 1, 0, 1, 2, 1, 2, 1, 2, 2, 0, 2, 1, 0, 1, 2, 1, 0, 2, 1, 2, 1, 0, 2, 1, 2, 2, 0, 2, 1, 1, 2, 0, 2, 0, 2, 0, 2, 2, 0, 2, 2, 0, 0, 0, 1, 2
OFFSET
0,2
LINKS
FORMULA
p = ...122121, p^2 = ...111111.
q = A271223 = ...200211, p * q = ...000001.
a(n) = (b(n+1) - b(n))/3^n, with b(n) = A309476(n).
MAPLE
T:= select(t -> padic:-ratvaluep(t, 1)=1, [padic:-rootp(x^2+1/2, 3, 100)]):
op([1, 1, 3], T); # Robert Israel, Aug 05 2019
PROG
(PARI) Vecrev(digits(truncate(sqrt(-1/2+O(3^100))), 3))
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Seiichi Manyama, Aug 04 2019
STATUS
approved