login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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 (list; graph; refs; listen; history; text; internal format)
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).

LINKS

Table of n, a(n) for n=0..47.

FORMULA

a(n) = A218542(n) - A218543(n).

PROG

(Scheme) (define (A257259 n) (- (A218542 n) (A218543 n)))

CROSSREFS

Cf. A011371, A218542, A218543, A213709.

Partial sums: A257805.

Sequence in context: A226483 A103407 A306938 * A074475 A144877 A049410

Adjacent sequences:  A257256 A257257 A257258 * A257260 A257261 A257262

KEYWORD

sign

AUTHOR

Antti Karttunen, May 13 2015

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 12 05:35 EDT 2020. Contains 335658 sequences. (Running on oeis4.)