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!)
A356291 Number of reducible permutations. 5
0, 0, 1, 3, 11, 49, 259, 1593, 11227, 89537, 799475, 7917897, 86257643, 1025959345, 13234866787, 184078090137, 2746061570587, 43736283267137, 740674930879379, 13289235961616937, 251805086618856395, 5024288943352588369, 105295629327037117123 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,4
LINKS
FORMULA
a(n) = n! - A003319(n).
a(n) = Sum_{j=1..n-1} (n - j)!*A003319(j).
a(n) ~ n!*(2/n + 1/n^2 + 5/n^3 + 32/n^4 + 253/n^5 + 2381/n^6 + ...). This follows from Vaclav Kotesovec's formula in A003319, see A260503 for more coefficients. In particular 2*(n-1)! < a(n) for n >= 5.
MAPLE
A356291 := n -> n! - A003319(n): seq(A356291(n), n = 0..22);
PROG
(Python)
def A356291_list(size: int):
F, R, C = 1, [0], [1] + [0] * (size - 1)
for n in range(1, size):
F *= n
for k in range(n, 0, -1):
C[k] = C[k - 1] * k
C[0] = -sum(C[k] for k in range(1, n + 1))
R.append(F + C[0])
return R
print(A356291_list(23))
# The test predicate, not suitable for calculation:
def reducible(p) -> bool:
return any(i for i in range(0, len(p))
if all(p[j] < p[k]
for j in range(0, i)
for k in range(i, len(p))
))
from itertools import permutations
for n in range(8): print(len([p for p in permutations(range(n)) if reducible(p)]))
CROSSREFS
Sequence in context: A004211 A180869 A357836 * A001339 A307030 A335788
KEYWORD
nonn
AUTHOR
Peter Luschny, Aug 02 2022
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 19 16:03 EDT 2024. Contains 371794 sequences. (Running on oeis4.)