OFFSET
0,3
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..8000
EXAMPLE
For n = 3: 11 = 10+1 = 1+1+1 [binary expansion of partitions of 3]. a(3) = (two 1's) + (two 1's) + (three 1's), so a(3) = 7.
MATHEMATICA
<< DiscreteMath`Combinatorica`; Table[Count[Flatten[IntegerDigits[Partitions[n], 2]], 1], {n, 0, 50}]
Table[Total[Flatten[IntegerDigits[#, 2]&/@IntegerPartitions[n]]], {n, 0, 50}] (* Harvey P. Dale, Mar 29 2022 *)
CROSSREFS
KEYWORD
easy,nonn,base
AUTHOR
Naohiro Nomoto, Jan 09 2002
EXTENSIONS
More terms from Vladeta Jovovic and Robert G. Wilson v, Jan 11 2002
STATUS
approved