OFFSET
0,6
LINKS
Andrew Howroyd, Table of n, a(n) for n = 0..1000
EXAMPLE
The a(1) = 1 through a(11) = 14 compositions (A = 10, B = 11):
(1) (2) (3) (4) (5) (6) (7) (8) (9) (A) (B)
(23) (25) (35) (27) (37) (29)
(32) (34) (53) (45) (46) (38)
(43) (323) (54) (64) (47)
(52) (72) (73) (56)
(232) (234) (235) (65)
(252) (253) (74)
(432) (325) (83)
(343) (92)
(352) (254)
(523) (272)
(532) (353)
(2323) (434)
(3232) (452)
MATHEMATICA
Table[Length[Select[Join@@Permutations/@IntegerPartitions[n], !MatchQ[#, {___, x_, y_, ___}/; Divisible[y, x]||Divisible[x, y]]&]], {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(i%j && 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