Can you work out the answer for the lazy swine?

  • Context: Undergrad 
  • Thread starter Thread starter Greg Bernhardt
  • Start date Start date
  • Tags Tags
    Work
Click For Summary

Discussion Overview

The discussion revolves around calculating the number of possible arrangements (permutations) of chess pieces on a standard chessboard for a normal game. Participants explore various methods and calculations related to the setup of the board, including the placement of pawns and other pieces, while considering the implications of different interpretations of the problem.

Discussion Character

  • Exploratory
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant initially estimates 645,120 combinations but feels uncertain about the accuracy of this number.
  • Another participant proposes a calculation leading to 208,089,907,200 combinations, detailing the permutations of pieces on one side and then doubling for both sides.
  • A further contribution clarifies the calculation for one side as 322,560 and suggests that the total for both sides is 104,044,953,600, while noting the importance of piece placement rules on a regulation board.
  • One participant expresses difficulty in deriving a simple equation for the arrangement of 8 pawns on 8 squares, presenting a step-by-step factorial approach.
  • Another participant provides a formula for combinations of identical pieces on squares and raises questions about the clarity of the original problem regarding piece placement and legality of positions.
  • A complex calculation is presented that attempts to account for illegal positions, leading to a total of 4,207,442,270,400, while acknowledging the challenge of ensuring legal arrangements.
  • One participant suggests that the problem could be interpreted under FIDE rules, leading to a different total of 13,005,619,200 permutations if pieces are numbered.

Areas of Agreement / Disagreement

Participants express various calculations and interpretations, with no consensus reached on a definitive answer. Multiple competing views and methods for solving the problem remain evident throughout the discussion.

Contextual Notes

The problem lacks clarity regarding the definition of a "normal game," including whether pieces must start on specific ranks and the implications of numbered pieces. Additionally, there are unresolved issues regarding illegal positions and the assumptions made in calculations.

Messages
19,917
Reaction score
10,945
One night after enjoying a slap up meal at the "Sweaty Chef" kebab shop Timmy Thomas found himself at a loose end whilst waiting for his favourite TV program, Pro-celebrity nude underwater longdistance Monkey hurdling, to begin. He turned to his chess set (a full normal chess set) and numbered each piece uniquely. He wonder to himself
"I wonder how many ways (permutations) are there to set up the board to begin a normal game?"
Being Timmy Thomas he never actually got round to working it out.
Can you work out the answer for the lazy swine?
 
Mathematics news on Phys.org
It figures.
The first one I get to that hasn't been answered already, and I don't know it!

:D

I will give it a shot, though.

I came up with 645,120 different combinations.
That number feels WAY OFF though.
 
The other number I came up with is (322,560^2)^2.
I am lost, but I gave it a shot.
I can't wait to see how it is actually supposed to be done.
 
I got it!
(I think I got it, anyway)

208089907200 possible combinations.

There are 40320 possible combinations of pawn placements on one side.
Switch the rooks, that makes 80640.
Switch the knights, that makes 161280.
Switch the bishops, that makes 322560 different possible combinations on one side.

For each of thiose, there are 322560 different possible combinations on the other side.

322560^2 = 104044953600.

Switcs sides:
104044953600 * 2 = 208089907200 possible combinations.

[?] [?]
 
I think you got it right too, but here's an attempt at being pedantic anyway:

For white, the number of setups on one side of the board is P*R*N*B*Q*K = 8!*2!*2!*2!*1!*1! = 322560

where the letters indicate the number of possible permutations for the named piece.

Black has the same number of possibilities, giving the total 322560*322560 = 104044953600

If Timmy is using a regulation chess board, the ranks will be numbered 1 through 8 and the files will be lettered a through h. White has to be on ranks 1 and 2 while black sets up on ranks 7 and 8, so you can't switch sides. So my final answer is 104044953600 permutations.

EDIT: But that was your second answer anyway, so I guess you win either way. D'oh.
 
Last edited:
Let me ask something...
(not a math wiz, obviously)
I had a helluva time trying to come up with a simple equation for how many possible combinations there are for 8 pawns on 8 squares.
What I ended up with (in a round about way, through trial and error) was this:

1 pawn= 1 possibility
2...2*1=1
3...2*3=6
4...6*4=24
5...24*5=120
6...120*6=720
7...720*7=5040
8...5040*8=40320

Is there some simple linear relationship I am missing here?
I know that if you had 8 numbers to go into 8 squares, and repetition is allowed, your possible combinations would be 8^8.
But this doesn't look quite that simple.
Or is it, and I am just missing something?
 
If you have n identical pieces on m squares then you have m!/(n! (m-n)!) possible combinations. If you have n different pieces on m squares that's m!/(m-n)! possibilities.

The problem, as posed, is woefully unclear about what a "normal game" is. Do the pieces need to start on the back two ranks? Can the game start in check? Do the bishops need to be on different colors?

In addition, the problem does not clarify whether the pawns, or other pieces are numbered.

Without any restrictions, we can calculate the number of starting arrangements of pieces on the board:

Then we would have:
64!/(8!*56!)*
56!/(8!*48!)*
54!/(2!*52!)*
52!/(2!*50!)*
50!/(2!*48!)*
48!/(2!*46!)*
46!/(2!*44!)*
44!/(2!*42!)*
42!/(38!)

Which telescopes to
64!/(2!6*8!2*38!)

Of course, this list does not eliminate the illegal starting positions like starting with a pawn on the 8th rank, and starting in check, neither of which is legal.

Since I don't see an easy way to deal with the problem above, I'll look at the 'starting in the regular area' problem for a moment:

It's quite easy to solve if the pawns are on the second rank. Now we've got eight squares per side, and the number of arrangements is:
8!/(2!*6!)*
6!/(2!*4!)*
4!/(2!*2!)*
2!/0!
all squared
some simple cancellation gives:
(8!/(2!*2!*2!)2=
7!2
or 25401600

If we throw in the pawns on each side naively, that adds a factor of (16!/(8!*8!))2 for a total of
4207442279040000 positions.
Unfortunately, there are a large number of positions in that list that have the king in check. I can't think of any good approach to this problem other than splitting the situation into three cases for each side:
The king on the back rank - no check possibility
The king on the outside four files and on the front rank - checks from opposing bishop,queen (2 positions), and rook possible.
rank - checks from opposing bishop and queen possible.

Technically, you could claim that 'normal game of chess' refers to FIDE rules, and that the permutations refers to the number of rearangements that could occur if the pieces were all numbered without upsetting the starting set up. That number is:
8!2*2!6=13005619200

[EDIT: I misread the question. The answer is 13,005,619,200, 26,011,238,400 if you allow rotations of the board]
 
Last edited:

Similar threads

Replies
12
Views
5K
Replies
6
Views
5K
  • · Replies 5 ·
Replies
5
Views
5K