OFFSET
1,9
COMMENTS
This multiset (row n of A305936) is generally not the same as the multiset of prime indices of n. For example, the prime indices of 12 are {1,1,2}, while a multiset whose multiplicities are {1,1,2} is {1,1,2,3}.
EXAMPLE
The a(9) = 6 matrices:
[1 1] [1 2] [1 2] [2 1] [2 1] [2 2]
[2 2] [1 2] [2 1] [1 2] [2 1] [1 1]
The a(38) = 9 matrices:
[1 1 1] [1 1 1] [1 1 1] [1 1 1] [1 1 1] [1 1 1] [1 1 2] [1 2 1] [2 1 1]
[1 1 1] [1 1 1] [1 1 1] [1 1 2] [1 2 1] [2 1 1] [1 1 1] [1 1 1] [1 1 1]
[1 1 2] [1 2 1] [2 1 1] [1 1 1] [1 1 1] [1 1 1] [1 1 1] [1 1 1] [1 1 1]
MATHEMATICA
primeMS[n_]:=If[n==1, {}, Flatten[Cases[FactorInteger[n], {p_, k_}:>Table[PrimePi[p], {k}]]]];
nrmptn[n_]:=Join@@MapIndexed[Table[#2[[1]], {#1}]&, Reverse[primeMS[n]]];
Table[If[IntegerQ[Sqrt[Total[primeMS[n]]]], Length[Permutations[nrmptn[n]]], 0], {n, 100}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Jan 17 2019
STATUS
approved