A349797 Number of non-weakly alternating permutations of the multiset of prime factors of n.
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 2, 0, 0, 0, 2, 0, 4, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 6, 0, 0, 0
Offset: 1
Keywords
Examples
The following are the weakly alternating permutations for selected n.
n = 30 60 72 120 144 180
---------------------------------------------
235 2235 22332 22235 222332 22353
532 2352 23223 22352 223223 23235
2532 23322 22532 223322 23325
3225 32232 23225 232232 23523
5223 23522 233222 23532
5322 25223 322223 25323
25322 322322 32235
32252 32253
52232 32352
53222 32532
33225
35223
35322
52233
52332
53223
53232
Crossrefs
Programs
-
Mathematica
whkQ[y_]:=And@@Table[If[EvenQ[m],y[[m]]<=y[[m+1]],y[[m]]>=y[[m+1]]],{m,1,Length[y]-1}]; Table[Length[Select[Permutations[Flatten[ConstantArray@@@ FactorInteger[n]]], !whkQ[#]&&!whkQ[-#]&]],{n,100}]
Comments