A382877 Number of ways to permute the prime indices of n so that the run-sums are all equal.
1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 2, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 2, 1, 0, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 2, 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0
Offset: 1
Keywords
Examples
The a(144) = 4 permutations of {1,1,1,1,2,2} are: (1,1,1,1,2,2) (1,1,2,1,1,2) (2,1,1,2,1,1) (2,2,1,1,1,1) The a(1728) = 4 permutations are: (1,1,1,1,1,1,2,2,2) (1,1,2,1,1,2,1,1,2) (2,1,1,2,1,1,2,1,1) (2,2,2,1,1,1,1,1,1)
Crossrefs
Programs
-
Mathematica
Table[Length[Select[Permutations[PrimePi/@Join @@ ConstantArray@@@FactorInteger[n]], SameQ@@Total/@Split[#]&]],{n,100}]
Comments