OFFSET
0,4
COMMENTS
FORMULA
EXAMPLE
The a(1) = 1 through a(8) = 20 partitions:
(21) (31) (32) (42) (43) (53)
(111) (211) (41) (51) (52) (62)
(1111) (221) (222) (61) (71)
(311) (321) (322) (332)
(2111) (411) (331) (422)
(11111) (2211) (421) (431)
(3111) (511) (521)
(21111) (2221) (611)
(111111) (3211) (2222)
(4111) (3221)
(22111) (3311)
(31111) (4211)
(211111) (5111)
(1111111) (22211)
(32111)
(41111)
(221111)
(311111)
(2111111)
(11111111)
MAPLE
A325269 := proc(n)
local a, p, s ;
a := 0 ;
for p in combinat[partition](n) do
s := convert(p, set) ;
if nops(p) >= 3 or nops(s) = 2 then
a := a+1 ;
end if;
end do:
a ;
end proc:
seq(A325269(n), n=0..40) ; # R. J. Mathar, Dec 13 2022
MATHEMATICA
Table[Length[Select[IntegerPartitions[n], Length[Union[#]]==2||Length[#]>2&]], {n, 0, 30}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Apr 18 2019
STATUS
approved