OFFSET
1,5
LINKS
Fausto A. C. Cariboni, Table of n, a(n) for n = 1..700 (terms 0..400 from Andrew Howroyd)
EXAMPLE
The a(23) = 9 strict integer partitions are (23), (13,10), (17,6), (21,2), (10,7,6), (11,7,5), (13,7,3), (11,7,3,2), (13,5,3,2).
MATHEMATICA
Table[Length[Select[IntegerPartitions[n], UnsameQ@@#&&And@@SquareFreeQ/@#&&Select[Tuples[#, 2], UnsameQ@@#&&Divisible@@#&]==={}&]], {n, 60}]
PROG
(PARI)
lista(nn)={local(Cache=Map());
my(excl=vector(nn, n, sumdiv(n, d, 2^(n-d))));
my(c(n, m, b)=
if(n==0, 1,
while(m>n || bittest(b, 0), m--; b>>=1);
my(hk=[n, m, b], z);
if(!mapisdefined(Cache, hk, &z),
z = if(m, self()(n, m-1, b>>1) + self()(n-m, m, bitor(b, excl[m])), 0);
mapput(Cache, hk, z)); z));
my(a(n)=c(n, n, sum(i=1, n, if(!issquarefree(i), 2^(n-i)))));
for(n=1, nn, print1(a(n), ", "))
} \\ Andrew Howroyd, Nov 02 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Apr 22 2018
STATUS
approved