http://acm.hdu.edu.cn/contests/contest_showproblem.php?pid=1005&cid=849
思路:
f(i)表示长度为i的随机排列作为参数的返回值期望
整理得,
则递推可求得f(i),最后答案为: