cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A336875 Number of parts, counted without multiplicity, in all compositions of n.

This page as a plain text file.
%I A336875 #16 Jun 13 2021 07:16:30
%S A336875 0,1,2,6,13,30,66,144,308,655,1380,2891,6024,12500,25844,53274,109530,
%T A336875 224690,460033,940276,1918979,3911186,7962194,16191875,32896364,
%U A336875 66776727,135445212,274532607,556086916,1125727954,2277650681,4605981879,9310120876,18810538092
%N A336875 Number of parts, counted without multiplicity, in all compositions of n.
%H A336875 Alois P. Heinz, <a href="/A336875/b336875.txt">Table of n, a(n) for n = 0..1000</a>
%e A336875 a(4) = 1 + 2 + 2 + 2 + 1 + 2 + 2 + 1 = 13: (1)111, (1)1(2), (1)(2)1, (2)(1)1, (2)2, (1)(3), (3)(1), (4).
%p A336875 b:= proc(n, i, p) option remember; `if`(n=0, [p!, 0],
%p A336875       `if`(i<1, 0, add((p-> [0, `if`(j=0, 0, p[1])]+p)(
%p A336875          b(n-i*j, i-1, p+j)/j!), j=0..n/i)))
%p A336875     end:
%p A336875 a:= n-> b(n$2, 0)[2]:
%p A336875 seq(a(n), n=0..38);
%t A336875 b[n_, i_, p_] := b[n, i, p] = If[n == 0, {p!, 0},
%t A336875      If[i<1, {0, 0}, Sum[{0, If[j == 0, 0, #[[1]]]}+#&[
%t A336875      b[n-i*j, i-1, p+j]/j!], {j, 0, n/i}]]];
%t A336875 a[n_] := b[n, n, 0][[2]];
%t A336875 a /@ Range[0, 38] (* _Jean-François Alcover_, Jun 13 2021, after _Alois P. Heinz_ *)
%Y A336875 Cf. A000070 (the same for partitions), A001792 (all parts), A097910, A336516.
%K A336875 nonn
%O A336875 0,3
%A A336875 _Alois P. Heinz_, Aug 06 2020