OFFSET
0,5
EXAMPLE
The a(2) = 1 through a(12) = 9 integer partitions (A = 10, B = 11):
(2) (3) (4) (5) (6) (7) (8) (9) (A) (B) (66)
(22) (33) (44) (333) (55) (84)
(42) (422) (82) (93)
(222) (2222) (442) (444)
(4222) (822)
(22222) (3333)
(4422)
(42222)
(222222)
The a(20) = 16 integer partitions:
(10,10), (16,4),
(8,8,4), (16,2,2),
(5,5,5,5), (8,4,4,4), (8,8,2,2),
(4,4,4,4,4), (8,4,4,2,2),
(4,4,4,4,2,2), (8,4,2,2,2,2),
(4,4,4,2,2,2,2), (8,2,2,2,2,2,2),
(4,4,2,2,2,2,2,2),
(4,2,2,2,2,2,2,2,2),
(2,2,2,2,2,2,2,2,2,2).
MATHEMATICA
radbase[n_]:=n^(1/GCD@@FactorInteger[n][[All, 2]]);
powsqfQ[n_]:=SameQ@@Last/@FactorInteger[n];
Table[Length[Select[IntegerPartitions[n], And[FreeQ[#, 1], And@@powsqfQ/@#, SameQ@@radbase/@#]&]], {n, 30}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Jan 01 2019
STATUS
approved