OFFSET
0,3
COMMENTS
An attainable partition p of n is a partition such that, when written so that p_1 >= p_2 >= ... >= p_r, we have Sum_{i=1..r} (3-2*i)*p_i >= 0.
LINKS
Kathleen Petersen and James Sellers, Partitions Associated to Class Groups of Imaginary Quadratic Number Fields, arXiv:2111.12031 [math.NT], 2021.
FORMULA
G.f.: (1/(1-x))*Product_{i>=1} 1/(1-x^(i*(i+1)). See Theorem 1.1 p. 1.
MATHEMATICA
nterms=50; Table[Total[Map[If[Sum[(3-2i)#[[i]], {i, Length[#]}]>=0, 1, 0]&, IntegerPartitions[n]]], {n, 0, nterms-1}] (* Paolo Xausa, Nov 24 2021 *)
PROG
(PARI) a(n) = my(nb=0); forpart(p=n, p = vecsort(p, , 4); if (sum(i=1, #p, (3-2*i)*p[i]) >= 0, nb++); ); nb;
CROSSREFS
KEYWORD
nonn
AUTHOR
Michel Marcus, Nov 24 2021
STATUS
approved