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”).

A341020
INVERT transform of the binary weight.
1
1, 1, 2, 5, 10, 22, 48, 104, 224, 485, 1050, 2271, 4914, 10633, 23006, 49777, 107700, 233027, 504192, 1090901, 2360344, 5106990, 11049806, 23908060, 51728994, 111924129, 242166136, 523965997, 1133686030, 2452914922, 5307282140, 11483171904, 24845718294
OFFSET
0,3
COMMENTS
Number of compositions of n into parts where there are A000120(k) sorts of part k.
LINKS
FORMULA
G.f.: 1 / (1 - Sum_{k>=1} A000120(k) * x^k).
MAPLE
h:= proc(n) option remember; add(j, j=Bits[Split](n)) end:
a:= proc(n) option remember; `if`(n=0, 1,
add(a(n-i)*h(i), i=1..n))
end:
seq(a(n), n=0..36);
MATHEMATICA
h[n_] := h[n] = DigitCount[n, 2, 1];
a[n_] := a[n] = If[n == 0, 1,
Sum[a[n - i]*h[i], {i, 1, n}]];
Table[a[n], {n, 0, 36}] (* Jean-François Alcover, Apr 14 2022, after Alois P. Heinz *)
CROSSREFS
Cf. A000120.
Sequence in context: A101399 A320650 A018109 * A123491 A329185 A232163
KEYWORD
nonn
AUTHOR
Alois P. Heinz, Feb 02 2021
STATUS
approved