Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A079584
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A079584 Number of ones in the binary expansion of n!. +0
2
1, 1, 2, 2, 4, 4, 6, 6, 6, 11, 7, 12, 12, 12, 18, 18, 22, 23, 17, 22, 25, 28, 31, 29, 30, 35, 38, 42, 40, 48, 42, 42, 46, 51, 56, 51, 58, 59, 64, 63, 66, 64, 71, 74, 70, 77, 81, 89, 87, 89, 90, 88, 94, 87, 99, 103, 98, 101, 109, 113, 103, 113, 120, 120, 109, 123, 121, 130, 121 (list; graph; listen)
OFFSET

1,3

FORMULA

a(n) = sum_components(binary_vector(n!))

EXAMPLE

a(5) = 4 because 5!=120 and 120)D = 1111000)B, with 4 ones.

MATHEMATICA

f[n_]:=Plus@@IntegerDigits[n, 2]; lst={}; Do[fa=n!; AppendTo[lst, f[fa]], {n, 6!}]; lst [From Vladimir Orlovsky (4vladimir(AT)gmail.com), Oct 10 2009]

PROGRAM

(PARI) for(n=1, 300, b=binary(n!); print1(sum(k=1, length(b), b[k]", ")))

CROSSREFS

Sequence in context: A083535 A070320 A124195 this_sequence A004079 A096494 A116568

Adjacent sequences: A079581 A079582 A079583 this_sequence A079585 A079586 A079587

KEYWORD

nonn

AUTHOR

Jose R. Brox (tautocrona(AT)terra.es), Jan 26 2003

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified December 21 10:15 EST 2009. Contains 171081 sequences.


AT&T Labs Research