OFFSET
17,5
MAPLE
b:= proc(n, i, t) option remember; `if`(n=0,
`if`(t=0, 1, 0), `if`(i<1 or t<1, 0, b(n, i-1, t)+
`if`(numtheory[issqrfree](i), b(n-i, min(n-i, i-1), t-1), 0)))
end:
a:= n-> b(n$2, 5):
seq(a(n), n=17..77); # Alois P. Heinz, Feb 04 2021
MATHEMATICA
b[n_, i_, t_] := b[n, i, t] = If[n == 0,
If[t == 0, 1, 0], If[i < 1 || t < 1, 0, b[n, i - 1, t] +
If[SquareFreeQ[i], b[n - i, Min[n - i, i - 1], t - 1], 0]]];
a[n_] := b[n, n, 5];
Table[a[n], {n, 17, 77}] (* Jean-François Alcover, Jul 14 2021, after Alois P. Heinz *)
Table[Count[IntegerPartitions[n, {5}], _?(Length[Union[#]]==5&&AllTrue[#, SquareFreeQ]&)], {n, 17, 80}] (* Harvey P. Dale, Sep 05 2023 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Feb 04 2021
STATUS
approved