A335407
Number of anti-run permutations of the prime indices of n!.
Original entry on oeis.org
1, 1, 1, 2, 0, 2, 3, 54, 0, 30, 105, 6090, 1512, 133056, 816480, 127209600, 0, 10090080, 562161600, 69864795000, 49989139200, 29593652088000, 382147120555200, 41810689605484800, 4359985823793600, 3025062801079038720, 49052072750637116160, 25835971971637227375360
Offset: 0
The a(0) = 1 through a(6) = 3 anti-run permutations:
() () (1) (1,2) . (1,2,1,3,1) (1,2,1,2,1,3,1)
(2,1) (1,3,1,2,1) (1,2,1,3,1,2,1)
(1,3,1,2,1,2,1)
The version for Mersenne numbers is
A335432.
Anti-run patterns are counted by
A005649.
Permutations of prime indices are
A008480.
Separable partitions are ranked by
A335433.
Inseparable partitions are ranked by
A335448.
Anti-run permutations of prime indices are
A335452.
Strict permutations of prime indices are
A335489.
Factorial numbers:
A000142,
A001222,
A002982,
A007489,
A022559,
A027423,
A054991,
A108731,
A181819,
A181821,
A325272,
A325273,
A325617.
-
primeMS[n_]:=If[n==1,{},Flatten[Cases[FactorInteger[n],{p_,k_}:>Table[PrimePi[p],{k}]]]];
Table[Length[Select[Permutations[primeMS[n!]],!MatchQ[#,{_,x_,x_,_}]&]],{n,0,10}]
-
\\ See A335452 for count.
a(n)={count(factor(n!)[,2])} \\ Andrew Howroyd, Feb 03 2021
A336104
Number of permutations of the prime indices of A000225(n) = 2^n - 1 with at least one non-singleton run.
Original entry on oeis.org
0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 24, 0, 0, 0, 0, 0, 96, 0, 120, 6, 0, 0, 720, 0, 0, 0, 0, 0, 720, 0, 0, 0, 0, 0, 322560, 0, 0, 0, 5040, 0, 4320, 0, 0, 0, 0, 0, 362880, 0, 0
Offset: 1
The a(21) = 6 permutations of {4, 4, 31, 68}:
(4,4,31,68)
(4,4,68,31)
(31,4,4,68)
(31,68,4,4)
(68,4,4,31)
(68,31,4,4)
A335459 is the version for factorial numbers.
A336105 counts all permutations of this multiset.
A336107 is not restricted to predecessors of powers of 2.
A003242 counts anti-run compositions.
A008480 counts permutations of prime indices.
A333489 ranks anti-run compositions.
A335433 lists numbers whose prime indices have an anti-run permutation.
A335448 lists numbers whose prime indices have no anti-run permutation.
A335452 counts anti-run permutations of prime indices.
A335489 counts strict permutations of prime indices.
The numbers 2^n - 1:
A000225,
A001265,
A001348,
A046051,
A046800,
A046801,
A049093,
A325610,
A325611,
A325612,
A325625.
-
primeMS[n_]:=If[n==1,{},Flatten[Cases[FactorInteger[n],{p_,k_}:>Table[PrimePi[p],{k}]]]];
Table[Length[Select[Permutations[primeMS[2^n-1]],MatchQ[#,{_,x_,x_,_}]&]],{n,30}]
A336105
Number of permutations of the prime indices of 2^n - 1.
Original entry on oeis.org
1, 1, 1, 2, 1, 3, 1, 6, 2, 6, 2, 60, 1, 6, 6, 24, 1, 120, 1, 360, 12, 24, 2, 2520, 6, 6, 6, 720, 6, 2520, 1, 120, 24, 6, 24, 604800, 2, 6, 24, 20160, 2, 10080, 6, 5040, 720, 24, 6, 1814400, 2, 5040, 120, 5040, 6, 15120, 720, 40320, 24, 720, 2
Offset: 1
The a(n) permutations for n = 2, 4, 6, 8, 21:
(2) (2,3) (2,2,4) (2,3,7) (31,4,4,68)
(3,2) (2,4,2) (2,7,3) (31,4,68,4)
(4,2,2) (3,2,7) (31,68,4,4)
(3,7,2) (4,31,4,68)
(7,2,3) (4,31,68,4)
(7,3,2) (4,4,31,68)
(4,4,68,31)
(4,68,31,4)
(4,68,4,31)
(68,31,4,4)
(68,4,31,4)
(68,4,4,31)
A008480 is not restricted to predecessors of powers of 2.
A325617 is the version for factorial numbers.
A335489 counts strict permutations of prime indices.
-
primeMS[n_]:=If[n==1,{},Flatten[Cases[FactorInteger[n],{p_,k_}:>Table[PrimePi[p],{k}]]]];
Table[Length[Permutations[primeMS[2^n-1]]],{n,30}]
Showing 1-3 of 3 results.
Comments