%I #15 Jan 16 2019 19:45:27
%S 0,0,0,1,2,5,6,13,17,27,36,54,66,99,128,169,221,295,367,488,610,779,
%T 993,1253,1525,1955,2426,2986,3684,4563,5519,6840,8298,10097,12298,
%U 14874,17716,21635,26002,31105,37081,44581,52916,63259,74852,88703,105543,124752,145740,173522,203999,239737,280424,329929
%N Number of integer partitions of n whose parts cannot be arranged into a (not necessarily square) matrix with equal row-sums and equal column-sums.
%H Chai Wah Wu, <a href="/A323348/b323348.txt">Table of n, a(n) for n = 0..59</a>
%e The a(8) = 17 integer partitions:
%e (53), (62), (71),
%e (332), (422), (431), (521), (611),
%e (3221), (4211), (5111),
%e (22211), (32111), (41111),
%e (221111), (311111),
%e (2111111).
%t primeMS[n_]:=If[n==1,{},Flatten[Cases[FactorInteger[n],{p_,k_}:>Table[PrimePi[p],{k}]]]];
%t facs[n_]:=If[n<=1,{{}},Join@@Table[Map[Prepend[#,d]&,Select[facs[n/d],Min@@#>=d&]],{d,Rest[Divisors[n]]}]];
%t ptnmats[n_]:=Union@@Permutations/@Select[Union@@(Tuples[Permutations/@#]&/@Map[primeMS,facs[n],{2}]),SameQ@@Length/@#&];
%t Table[Length[Select[IntegerPartitions[n],Select[ptnmats[Times@@Prime/@#],And[SameQ@@Total/@#,SameQ@@Total/@Transpose[#]]&]=={}&]],{n,10}]
%Y A000041(n) = A323347(n) + a(n).
%Y Cf. A006052, A007016, A120733, A319056, A319066, A321719.
%Y Cf. A323300, A323302, A323304, A323306, A323349.
%K nonn
%O 0,5
%A _Gus Wiseman_, Jan 13 2019
%E a(17)-a(53) from _Chai Wah Wu_, Jan 15 2019