OFFSET
0,4
LINKS
Andrew Howroyd, Table of n, a(n) for n = 0..1000
EXAMPLE
The a(2) = 1 through a(6) = 18 compositions:
(2) (3) (4) (5) (6)
(21) (13) (14) (15)
(22) (32) (42)
(31) (41) (51)
(211) (131) (114)
(212) (132)
(221) (141)
(311) (213)
(2111) (222)
(312)
(321)
(411)
(1311)
(2112)
(2121)
(2211)
(3111)
(21111)
MATHEMATICA
pless[y_]:=Length[Select[Range[Length[y]], #<y[[#]]&]];
Table[Length[Select[Join@@Permutations/@ IntegerPartitions[n], pless[#]==1&]], {n, 0, 10}]
PROG
(PARI)
S(v, u, c=0)={vector(#v, k, c + sum(i=1, k-1, v[k-i]*u[i]))}
seq(n)={my(v=vector(1+n), s=0); v[1]=1; for(i=1, n, v=S(v, vector(n, j, if(j>i, 'x, 1)), O(x^2)); s+=apply(p->polcoef(p, 1), v)); s} \\ Andrew Howroyd, Jan 02 2023
CROSSREFS
The weak version is A177510.
KEYWORD
nonn
AUTHOR
Gus Wiseman, Apr 02 2022
EXTENSIONS
Terms a(21) and beyond from Andrew Howroyd, Jan 02 2023
STATUS
approved