Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.
%I #6 Nov 25 2020 21:21:31
%S 0,0,0,1,0,0,0,2,2,2,2,2,8,8,14,14,20,20,50,50,80,104,134,158,212,356,
%T 410,578,752,1040,1238,1646,1964,3236,3674,5066,6368,8720,10862,14078,
%U 17180,22076,31802,38378,49784,63824,82670,104150,136220,165980
%N Number of compositions (ordered partitions) of n into distinct parts, the least being 3.
%H <a href="/index/Com#comp">Index entries for sequences related to compositions</a>
%F G.f.: Sum_{k>=1} k! * x^(k*(k + 5)/2) / Product_{j=1..k-1} (1 - x^j).
%e a(12) = 8 because we have [9, 3], [5, 4, 3], [5, 3, 4], [4, 5, 3], [4, 3, 5], [3, 9], [3, 5, 4] and [3, 4, 5].
%p b:= proc(n, i, p) option remember;
%p `if`(n=0, p!, `if`((i-3)*(i+4)/2<n, 0,
%p add(b(n-i*j, i-1, p+j), j=0..min(1, n/i))))
%p end:
%p a:= n-> `if`(n<3, 0, b(n-3$2, 1)):
%p seq(a(n), n=0..55); # _Alois P. Heinz_, Nov 25 2020
%t nmax = 49; CoefficientList[Series[Sum[k! x^(k (k + 5)/2)/Product[1 - x^j, {j, 1, k - 1}], {k, 1, nmax}], {x, 0, nmax}], x]
%Y Cf. A026796, A026824, A339101, A339162, A339163, A339165, A339166.
%K nonn
%O 0,8
%A _Ilya Gutkovskiy_, Nov 25 2020