OFFSET
1,20
REFERENCES
L. M. Chawla and S. A. Shad, On a restricted partition function t(n) and its table, J. Natural Sciences and Mathematics, 9 (1969), 217-221. Math. Rev. 41 #6761.
N. J. A. Sloane, A Handbook of Integer Sequences, Academic Press, 1973 (includes this sequence).
N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
LINKS
T. D. Noe, Table of n, a(n) for n = 1..1000
EXAMPLE
a(20) = 2: 20 = 2*3 + 2*7 = 2*5 + 2*5.
MATHEMATICA
a[n_] := SeriesCoefficient[1/Product[If[SquareFreeQ[k] && PrimeNu[k] == 2, 1 - z^k, 1], {k, 1, n}], {z, 0, n}];
Array[a, 100] (* Jean-François Alcover, Nov 26 2020, after PARI *)
PROG
(PARI) a(n)=polcoeff(1/prod(k=1, n, if(issquarefree(k)*if(omega(k)-2, 0, 1), 1-z^k, 1))+O(z^(n+1)), n)
(Haskell)
a002100 = p a006881_list where
p _ 0 = 1
p ks'@(k:ks) m = if m < k then 0 else p ks' (m - k) + p ks m
-- Reinhard Zumkeller, Mar 21 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
More terms from Benoit Cloitre, Jun 01 2003
STATUS
approved