返回题库

PUMaC 2007 · 组合(A 组) · 第 9 题

PUMaC 2007 — Combinatorics (Division A) — Problem 9

专题
Contest Math / 竞赛数学
难度
L3
来源
PUMaC

题目详情

1,2,…,20071,2,\ldots,2007 的排列 (a1,a2,…,a2007)(a_1,a_2,\ldots,a_{2007}) 中,恰好有一个位置满足 ai>ai+1a_i>a_{i+1} 的排列有多少个?

英文原题

For how many permutations (a1,a2,…,a2007)(a_1,a_2,\ldots,a_{2007}) of 1,2,…,20071,2,\ldots,2007 is there exactly one index ii such that ai>ai+1a_i>a_{i+1}?

解析

这就是恰有一个下降的欧拉数:

A(n,1)=2n−n−1.A(n,1)=2^n-n-1.

也可直接推导:唯一下降把排列分成两个递增块。任取非空真子集 S⊂{1,…,n}S\subset\{1,\ldots,n\},把 SS 内元素递增排列,再把补集递增排列。除非 S={1,2,…,k}S=\{1,2,\ldots,k\} 是初段,否则连接处恰好产生一个下降。坏的初段共有 n−1n-1 个。

因此数量为

(2n−2)−(n−1)=2n−n−1.(2^n-2)-(n-1)=2^n-n-1.

代入 n=2007n=2007,得到

22007−2008.\boxed{2^{2007}-2008}.

英文解析

This is the Eulerian number with exactly one descent:

A(n,1)=2n−n−1.A(n,1)=2^n-n-1.

One direct derivation is to choose the two increasing blocks determined by the unique descent. Every nonempty proper subset S⊂{1,…,n}S\subset\{1,\ldots,n\} gives the permutation with the elements of SS increasing, followed by the elements of its complement increasing. This has one descent except when S={1,2,…,k}S=\{1,2,\ldots,k\} is an initial segment; there are n−1n-1 such bad subsets.

Thus

(2n−2)−(n−1)=2n−n−1.(2^n-2)-(n-1)=2^n-n-1.

For n=2007n=2007, the answer is

22007−2008.\boxed{2^{2007}-2008}.