Puzzled Knight

A knight is standing at one corner of an 8 × 8 8 \times 8 chessboard and it has to reach the opposite corner.The minimum number of steps required by him to do so is 6. Find the number of paths by which it can reach the other end in 6 moves.

1 36 2 108

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

James Shi
Feb 17, 2014

Note: this solution works from top left to bottom right. The number of squares the knight needs to go through to reach the opposite square is 14 (7 horizontal, 7 vertical). 6 moves can go a maximum of 18 squares (2 squares one direction, 1 square in another), so the moves go backwards a total of 2 squares. There are two different ways to do that. One way is for one knight move to go up 2 squares, right 1 square, or left 2 squares, down 1 square. We can just work on that case first and worry about the other case later.

The one knight move going 2 steps back is symmetrical along the diagonal, meaning that every way we find with one of the knight moves going backwards 2 steps can be done with the other knight move going backwards 2 steps, and every other move is also flipped along the diagonal. We can just work with the knight move going 2 squares up, one square right, and the number of ways with that set of knight moves can be multiplied by 2.

If one knight move is 2U1R (I'll abbreviate stuff from now on), then there must be four knight moves with 2D1R and one with 1D2R to get to the opposite corner. The total number of ways to rearrange those moves is 6*5=30, but some of them go outside the board and don't work. The knight move 2U1R cannot be first or last, or else the knight would've went outside the board, or started outside the board to reach the opposite corner. There are 10 ways (in total for both cases) to rearrange the other moves so 30-10 = 20 cases work from the remaining. If the first or last move is 1D2R, the second or second to last move (respectively) can't be 2U1R for the same reasons. The other 4 moves for both of those cases are all the same, so there is an additional 2 set of moves that don't work. 20-2=18. You can verify that there aren't any other cases that don't work.

So far, we have counted 18 ways, so multiplying that by 2 gives 36. Going on the the alternate case, there must be 2 distinct knight moves that go backwards one step. Testing this case out, the knight moves must have two 1D2R, two 2D1R, one 1U2R, and one 2D1L. You can show that this case has at least one set of moves that work, and it's unnecessary to show what it equals (and I'm lazy) since there's only one choice with an answer greater than 36 so the answer is 48.

I'm pretty sure there are 108 unique paths and that the question is wrong. I have a python script here . Someone please show me why any of the 108 paths I show are not ok.

Skylar Saveland - 7 years, 3 months ago

Log in to reply

I'm sorry! I actually solved the question before posting by hand and missed a few paths.The correct answer is actually 108. Could you please explain how to change the options?

Pankaj Kumar Yadav - 7 years, 3 months ago

Log in to reply

I don't know how. I've engaged the kind folks who run the site. We might have to develop some software to work around this :D Do you know Python or JavaScript? ;)

Skylar Saveland - 7 years, 3 months ago

To update your answer, you can either
1) reply to the emails asking for clarifications or disputes.
2) send me an email directly listing the problem title/url and correct answer.

Calvin Lin Staff - 7 years, 3 months ago

You're probably right. I just tried working on the other case that I was too lazy to solve and I think the only restriction is that neither 1U2R nor 2D1L can be first or last, which gives 4 3 6 = 72 4\cdot3\cdot6 = 72 ways. 72 + 36 = 108 72+36=108

James Shi - 7 years, 3 months ago

I also got 108 but I used a different method. There's 48 if the path has to hit the diagonal though. How I did it was work backwards 3 steps and work forwards 3 steps (each square had the number of ways to reach it from the start in 3 steps, and the number of ways to reach it from the end in 3 steps) and then multiply the numbers in the boxes with 2 numbers and add together the products. You get 108.

Nathan Ramesh - 7 years, 3 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...