OFFSET
0,4
LINKS
Andrew Howroyd, Table of n, a(n) for n = 0..1000
EXAMPLE
The a(1) = 1 through a(9) = 16 compositions:
(1) (2) (3) (4) (5) (6) (7) (8) (9)
(21) (31) (23) (42) (25) (35) (27)
(32) (51) (34) (53) (45)
(41) (231) (43) (62) (54)
(321) (52) (71) (63)
(61) (251) (72)
(232) (323) (81)
(421) (341) (234)
(431) (252)
(521) (342)
(2321) (351)
(423)
(432)
(531)
(621)
(3231)
MATHEMATICA
Table[Length[Select[Join@@Permutations/@IntegerPartitions[n], !MatchQ[#, {___, x_, y_, ___}/; Divisible[y, x]]&]], {n, 0, 10}]
PROG
(PARI) seq(n)={my(r=matid(n)); for(k=1, n, for(i=1, k-1, r[i, k]=sum(j=1, k-i, if(j%i, r[j, k-i])))); concat([1], vecsum(Col(r)))} \\ Andrew Howroyd, Oct 19 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Oct 17 2019
EXTENSIONS
Terms a(26) and beyond from Andrew Howroyd, Oct 19 2019
STATUS
approved