The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A079072 Sum of numbers < n having in binary representation the same number of 0's as n. 4
0, 0, 0, 1, 0, 2, 7, 4, 0, 4, 13, 13, 23, 24, 37, 11, 0, 8, 25, 35, 43, 54, 75, 51, 63, 97, 122, 74, 148, 101, 130, 26, 0, 16, 49, 87, 83, 122, 159, 176, 119, 197, 238, 215, 280, 258, 303, 160, 159, 324, 373, 349, 423, 400, 453, 207, 475, 507, 564, 262, 622, 321, 382, 57, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,6
LINKS
MAPLE
f:= n-> add(1-i, i=convert(n, base, 2)):
b:= proc(n) b(n):= b(n-1)+n*x^f(n) end: b(-1):=0:
a:= n-> coeff(b(n-1), x, f(n)):
seq(a(n), n=0..150); # Alois P. Heinz, Feb 08 2018
MATHEMATICA
snbr[n_]:=Module[{dc=DigitCount[n, 2, 0]}, Total[Select[Range[n-1], DigitCount[ #, 2, 0]==dc&]]]; Array[snbr, 70] (* Harvey P. Dale, May 03 2012 *)
CROSSREFS
Sequence in context: A090564 A306618 A349856 * A004584 A016592 A371876
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Dec 21 2002
STATUS
approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 14 02:26 EDT 2024. Contains 372528 sequences. (Running on oeis4.)