login
A341095
Number of partitions of n into 7 distinct squarefree parts.
6
1, 1, 0, 1, 2, 2, 2, 4, 6, 7, 7, 10, 14, 15, 15, 21, 28, 32, 32, 44, 53, 60, 60, 76, 93, 103, 107, 131, 157, 172, 178, 211, 247, 273, 283, 333, 384, 423, 439, 507, 577, 629, 657, 747, 846, 917, 960, 1078, 1211, 1306, 1362, 1521, 1691, 1822, 1898, 2103, 2322, 2494, 2596, 2850, 3134
OFFSET
34,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, 7):
seq(a(n), n=34..94); # 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, 7];
Table[a[n], {n, 34, 94}] (* Jean-François Alcover, Feb 24 2022, after Alois P. Heinz *)
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Feb 04 2021
STATUS
approved