A girl puts 1 grain of rice in the first square of an 8 by 8 chess board. In the subsequent square, she puts twice that of the previous square, and she continues until she fills all the squares.
How many total grains does she need?
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.
Let x be the square you are on, and f(x) be the number of grains of rice on that square. Could you integrate the function: f ( x ) = 2 x − 1 within the limits of x = 0 and x = 64 to give you the sum of grains of rice needed?
Log in to reply
The limits should be x=1 to x=64.
Integrating 2^{x-1} gives 2^{x-1}/In2,
And after inserting the limits, it gives: 2^{63}/In2 - 2^{0}/In2
= [2^{63}-1]/In2
But integrating won't give the right answer as x (the square number) only takes discrete values and is not continuous from x=1 to x=64, for example: you can't have a square number- 45.778, even if it is within the range.
So, integration cannot be used. The number of rice grains on squares of chess board from square 1 to square 64 forms a geometrical sequence: 1, 2, 4, 8,......
The first term (a) is 1, common ratio (r) is 2 and number of squares (n) is 64.
The geometric series summation formula is: a(1-r^{n}) / (1-r)
Inserting a, r and n into that formula gives (1-2^{64})/ (-1) = 2^{64} -1.
Log in to reply
That's a great response, thanks! Appreciate the amount of detail!
None of these solutions work. There soon would not be enough room in the each square to accommodate the requisite number of rice grains. The actual number would be far smaller than the theoretical number.
This is none other than the famous Wheat and Chessboard Problem . In a nutshell, the story goes like... the inventor of chess after presenting his ingenuity before the king asked for his gift in a process as described above. The mathematically ignorant king thought it was nothing as compared to his enormous wealth but soon became crazy and probably abdicated out of shame!
(There are many versions of the story, this is the one I know)
The common ratio is r = 1 2 = 2 4 = 2
The sum of terms of a GP is given by
s = 1 − r a 1 − a 1 r n ⟹ s = 1 − 2 1 − 1 ( 2 6 4 ) = − 1 1 − 2 6 4 = − ( 1 − 2 6 4 ) = − 1 + 2 6 4 = 2 6 4 − 1
No solution needed. It was the only answer that made sense. 64! was clearly wrong as was (64 2). Recognizing that there are 64 squares with a base of 2 and a single square with one grain made the answer clear.
The sequence of putting the grains in the chess board is 1,2,4,8,......... It is in GP.Total boxes in chess board is 64. So total grains =a(r raise to n -1)/r-1 Here r = 2,a=1 Therefore, total grains=2raise to 64 -1
I remember this problem from a Brazilian recreational mathematics book. If anyone's curious, 2^64 - 1 = 18 446 744 073 709 551 615.
There are 64 squares on a chessboard, and all but the first square has a power of 2 grains. Thus the answer is 2 to the 64th power minus 1 grain.
Bcuz the pattern is 2^x-1 and there is 8x8=64
Sn = ax(r^n-1) = 1x(2^64 - 1)
Problem Loading...
Note Loading...
Set Loading...
The sum of grains he need is:
A = 1 + 2 + 2 2 + 2 3 + … + 2 6 3 ( 1 )
Multiplying both side by 2, we get:
2 A = 2 + 2 2 + 2 3 + 2 4 + … + 2 6 4 ( 2 ) .
From ( 1 ) and ( 2 ) we have: A = 2 A − A = 2 6 4 − 1 .