蛇形数组是指一个由数字 {1,2,...,n} 组成的长度为 n 的排列 (x1,x2,...,xn) 且满足 x1<x2>x3<x4>...。
例如:
n=2,只存在 1<2 ,共 1 个。
n=3,1<3>22<3>1}共2个。
n=4,1<3>2<41<4>2<32<3>1<42<4>1<33<4>1<2⎭⎬⎫共5个。
求长度为 10 的蛇形数组有多少个?
注
推广:求长度为 n 的蛇形数组有多少个?
译者:smart_kai。
译自:《Lectures and Problems: A Gift to Young Mathematicians》Part 4: Problems for Children 5 to 15 Years Old 第 49 题。