lpetrich
Science Advisor
- 998
- 180
#60
The king moves from position (0,0) to (n,n) where n is 7 for a standard chessboard, and moves with combinations of horizontal, (1,0), vertical, (0,1), and diagonal, (1,1) moves.
For k diagonal moves, the number of horizontal moves needed is (n-k), and the number of vertical moves needed is likewise (n-k). This gives a total of (2n-k) moves.
The total number of permutations with all distinct is (2n-k)!. However, all the horizontal moves look alike, meaning that one must divided by the factorial of their number, (n-k)!. Likewise for vertical moves, (n-k)!, and diagonal moves, k!. Thus giving
$$ N(n,k) = \frac{(2n-k)!}{k! (n-k)! (n-k)!} $$
The total number of permutations is added up over k = 0 to n, giving
$$ N(n) = \sum_{k=0}^n N(n,k) $$
Doing this calculation for n = 7 gives 48639.
I looked for patterns for N(n) as a function of n, without much success. By numerical calculation, I found an asymptotic limit of C0*Cn, for C near 5.8.
For k diagonal moves, the number of horizontal moves needed is (n-k), and the number of vertical moves needed is likewise (n-k). This gives a total of (2n-k) moves.
The total number of permutations with all distinct is (2n-k)!. However, all the horizontal moves look alike, meaning that one must divided by the factorial of their number, (n-k)!. Likewise for vertical moves, (n-k)!, and diagonal moves, k!. Thus giving
$$ N(n,k) = \frac{(2n-k)!}{k! (n-k)! (n-k)!} $$
The total number of permutations is added up over k = 0 to n, giving
$$ N(n) = \sum_{k=0}^n N(n,k) $$
Doing this calculation for n = 7 gives 48639.
I looked for patterns for N(n) as a function of n, without much success. By numerical calculation, I found an asymptotic limit of C0*Cn, for C near 5.8.
!
I should read better (50 is not the radius)