login
A178562
First differences of A178344.
2
1, 2, 1, 2, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, -2, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1, 1, 1, 1, 1, -10, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1, 1, 1, 1, 1, -3, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1, 1, 1, 1, 1, -18, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1, 1, 1, 1, 1, -3, 1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1, 1, 1, 1, 1, -11, 1, 1, 1
OFFSET
0,2
LINKS
FORMULA
a(n) = A178344(n+1) - A178344(n).
PROG
(PARI)
A178344(n) = if(!n, 1, my(i=1, s=0); while(n, s+=prime(i)^(n%2); n >>= 1; i++); (s));
A178562(n) = (A178344(n+1)-A178344(n)); \\ Antti Karttunen, Sep 29 2018
CROSSREFS
Sequence in context: A346831 A161780 A136571 * A232624 A287368 A108149
KEYWORD
sign,less
AUTHOR
EXTENSIONS
Two terms corrected by R. J. Mathar, May 31 2010
STATUS
approved