Can a person come and go at the same time? |
It is equivalent to arrange the following 20 symbols, A1, A2, ..., A10 B1, B2, ..., B10 under some rules. (1) they can occupy same position. (2) B1 must behind A1, B2 hehind A2, and so on. We can first ignore the 2nd reqirement, but use instead the condition that A1 and B1 cannot be in the same position, and so on. The result divided by 2^10 is what we need. we have such recurrence relationship, T(n+1, 2) = T(n, 2) * P(2,2) T(n+1, 3) = T(n, 2) * 2*3 +T(n, 3) *P(3,2) T(n+1, 4) = T(n, 2) *3*4 +T(n, 3) * 3*4 +T(n, 4) * P(4,2) ... T(n+1, m) = T(n, m-2) *(m-1)*m +T(n, m-1) *(m-1) *m +T(n, m)*P(m, 2) where T(n, m) denotes n pairs occupy m positions. We can use matrix multiplication to present the above relations. A computer program will do the calculations. I don't find a general expression for this problem. |
应该是对的。我也只有递推解。最后算出来 T(10) = 1843200116875263613 |
欢迎光临 珍珠湾ART (http://zzwav.com/) | Powered by Discuz! X3 |