OFFSET
0,6
LINKS
EXAMPLE
a(18) = 4 because we have [13, 5], [11, 7], [7, 11] and [5, 13].
MAPLE
with(numtheory):
a:= proc(m) option remember; local b; b:= proc(n) option
remember; `if`(n=0, 1, add(`if`(not issqrfree(j) or
irem(m, j)=0, 0, b(n-j)), j=2..n)) end; b(m)
end:
seq(a(n), n=0..70); # Alois P. Heinz, Mar 11 2018
MATHEMATICA
Table[SeriesCoefficient[1/(1 - Sum[Boole[Mod[n, k] != 0 && SquareFreeQ[k]] x^k, {k, 1, n}]), {x, 0, n}], {n, 0, 51}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Mar 11 2018
STATUS
approved