%I #14 Apr 22 2021 08:42:39
%S 1,0,0,0,1,0,0,0,1,2,3,4,6,8,12,16,24,32,46,62,87,116,160,212,288,380,
%T 508,666,883,1150,1508,1954,2542,3274,4229,5416,6949,8856,11292,14320,
%U 18162,22922,28921,36344,45641,57112,71407,88998,110816,137600,170665
%N Number of weakly unimodal compositions of n in which the greatest part occurs exactly four times.
%H Alois P. Heinz, <a href="/A320315/b320315.txt">Table of n, a(n) for n = 0..10000</a>
%H Wikipedia, <a href="https://en.wikipedia.org/wiki/Unimodality#Unimodal_function">Unimodality, Unimodal function</a>
%F G.f.: Sum_{n>=0} x^(4*n) / Product_{j=1..n-1} (1-x^j)^2.
%F a(n) ~ Pi^3 * exp(2*Pi*sqrt(n/3)) / (2^5 * 3^(5/4) * n^(11/4)). - _Vaclav Kotesovec_, Oct 24 2018
%p b:= proc(n, i) option remember; `if`(i>n, 0,
%p `if`(4*i=n, 1, 0)+add(b(n-i*j, i+1)*(j+1), j=0..n/i))
%p end:
%p a:= n-> `if`(n=0, 1, b(n, 1)):
%p seq(a(n), n=0..70);
%t b[n_, i_] := b[n, i] = If[i > n, 0, If[4 i == n, 1, 0] +
%t Sum[b[n - i j, i + 1] (j + 1), {j, 0, n/i}]];
%t a[n_] := If[n == 0, 1, b[n, 1]];
%t a /@ Range[0, 70] (* _Jean-François Alcover_, Apr 22 2021, after _Alois P. Heinz_ *)
%Y Column k=4 of A247255.
%K nonn
%O 0,10
%A _Alois P. Heinz_, Oct 10 2018