login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A026924
Number of partitions of n into an odd number of parts, the greatest being 4; also, a(n+7) = number of partitions of n+3 into an even number of parts, each <=4.
2
0, 0, 0, 1, 0, 1, 1, 3, 3, 5, 5, 8, 8, 12, 13, 18, 19, 24, 26, 33, 35, 43, 46, 55, 59, 69, 74, 86, 91, 104, 111, 126, 134, 150, 159, 177, 187, 207, 219, 241, 254, 277, 292, 318, 334, 362, 380, 410, 430, 462, 484, 519, 542, 579, 605
OFFSET
1,8
LINKS
FORMULA
a(n) + A026928(n) = A026810(n). - R. J. Mathar, Aug 22 2019
MAPLE
A026924 := proc(n)
local a, p1, p2, p3, p4 ;
a := 0 ;
for p1 from 0 to n do
for p2 from 0 to (n-p1)/2 do
for p3 from op(1+modp(n-p1-2*p2, 4), [0, 3, 2, 1]) to (n-p1-2*p2)/3 by 4 do
p4 := (n-p1-2*p2-3*p3)/4 ;
if type(p4, 'integer') and p4 >=1 and type(p1+p2+p3+p4, 'odd') then
a := a+1 ;
end if:
end do:
end do:
end do:
a;
end proc: # R. J. Mathar, Aug 22 2019
CROSSREFS
4th column of A026920.
Sequence in context: A063281 A362059 A117772 * A240313 A275369 A377984
KEYWORD
nonn
STATUS
approved