login
A257259
a(n) = A218542(n) - A218543(n).
2
1, -1, 0, -1, -1, -3, -1, -6, -8, -10, -7, -4, 2, 2, -14, -90, -318, -896, -2166, -4691, -9298, -17175, -30007, -50261, -81664, -129637, -200973, -301205, -426500, -545183, -561511, -252122, 836543, 3542930, 9312475, 20508985, 40858087, 76119037, 135203839, 232236417, 390709345, 652711050, 1101492173, 1921013671, 3558812217, 7170401227, 15800043812, 37400877416
OFFSET
0,6
COMMENTS
a(n) = the difference between the number of even and odd numbers encountered when traversing from 2^(n+1)-1 to (2^n)-1 by iterating the map A011371: x -> x - (number of 1's in binary representation of x).
FORMULA
a(n) = A218542(n) - A218543(n).
PROG
(Scheme) (define (A257259 n) (- (A218542 n) (A218543 n)))
CROSSREFS
Partial sums: A257805.
Sequence in context: A226483 A103407 A306938 * A074475 A144877 A049410
KEYWORD
sign
AUTHOR
Antti Karttunen, May 13 2015
STATUS
approved