login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A249154
(n+1) times the number of 1's in the binary expansion of n.
2
0, 2, 3, 8, 5, 12, 14, 24, 9, 20, 22, 36, 26, 42, 45, 64, 17, 36, 38, 60, 42, 66, 69, 96, 50, 78, 81, 112, 87, 120, 124, 160, 33, 68, 70, 108, 74, 114, 117, 160, 82, 126, 129, 176, 135, 184, 188, 240, 98, 150, 153, 208, 159, 216, 220, 280, 171, 232, 236, 300, 244, 310, 315, 384, 65
OFFSET
0,2
FORMULA
a(n) = (n+1) * A000120(n).
a(n) = A000120(n) + A245788(n).
a(n) = 2*A000788(n) - A187059(n).
PROG
(Scheme) (define (A249154 n) (* (+ n 1) (A000120 n)))
(Python)
def A249154(n): return (n+1)*n.bit_count() # Chai Wah Wu, Nov 11 2024
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Antti Karttunen, Nov 02 2014
STATUS
approved