login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A335459 Number of permutations of the prime indices of n! with at least one non-singleton run. 3
0, 0, 0, 0, 4, 18, 102, 786, 3960, 51450, 675570, 10804710, 139674024, 2793377664, 58662908640, 1798893694080, 26985313555200, 782574083010720, 25992638958686400, 857757034323189000, 30021498596590300800, 1563341714743040232000, 64179292280096037844800, 2631350957341279888915200 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,5
COMMENTS
A prime index of n is a number m such that prime(m) divides n. The multiset of prime indices of n is row n of A112798.
LINKS
FORMULA
A008480(n!) = a(n) + A335407(n).
EXAMPLE
The a(4) = 4 and a(5) = 18 permutations:
(1,1,1,2) (1,1,1,2,3)
(1,1,2,1) (1,1,1,3,2)
(1,2,1,1) (1,1,2,1,3)
(2,1,1,1) (1,1,2,3,1)
(1,1,3,1,2)
(1,1,3,2,1)
(1,2,1,1,3)
(1,2,3,1,1)
(1,3,1,1,2)
(1,3,2,1,1)
(2,1,1,1,3)
(2,1,1,3,1)
(2,1,3,1,1)
(2,3,1,1,1)
(3,1,1,1,2)
(3,1,1,2,1)
(3,1,2,1,1)
(3,2,1,1,1)
MATHEMATICA
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}]
PROG
(PARI) \\ See A335452 for count.
a(n)={my(sig=factor(n!)[, 2]); vecsum(sig)!/vecprod([k! | k<-sig]) - count(sig)} \\ Andrew Howroyd, Apr 17 2021
CROSSREFS
The anti-run version is A335407.
Anti-runs are ranked by A333489.
Anti-run compositions are A003242.
Anti-run patterns are A005649.
Permutations of prime indices are A008480.
Permutations of prime indices of n! are A325617.
Anti-run permutations of prime indices are A335452.
Sequence in context: A064852 A229286 A191365 * A159666 A349021 A316186
KEYWORD
nonn
AUTHOR
Gus Wiseman, Jul 03 2020
EXTENSIONS
a(11)-a(13) from Vaclav Kotesovec, Jul 07 2020
Terms a(14) and beyond from Andrew Howroyd, Apr 17 2021
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 17:51 EDT 2024. Contains 371962 sequences. (Running on oeis4.)