By Alex Bellos on Monday 13 March 2017 at 17.00 GMT
Photograph: Bernat Armangue/AP
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_G1q-sQBGQBAHgqIzLNZ0ymKK7K6Kto9T7cggoKUnBBF5IYEZ4jMVqUsMha286FVfOjYVWa-X6lJdstLivmAM2eP1SmLiNBc1EaKZpQG6wHWS55w-H8ipNvf6nfvojXK5nwXnxw1QCRmf/s1600/2733.jpg
https://www.theguardian.com/science/2017/mar/13/did-you-solve-it-pi-day-puzzles-that-will-leave-you-pie-eyed#img-1
https://www.theguardian.com/science/2017/mar/13/did-you-solve-it-pi-day-puzzles-that-will-leave-you-pie-eyed
1) Pictured below are three identical boxes packed with pies. You can assume that all pies are exactly the same height. Which box contains the most pie?
Illustration: Brilliant.org
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDlNuosDXqQFci-tXKOkb2obzQkihjL5XENQbGD3cf5CBUdIlKLw4K4QFfvVpz2u_99rQLOC4gRnjvJr0n4vQ0B7fByZMoecUDqzQQb1g3jYWnCnJUj-uyKWdAg8duqcC4EY_kRnJPOVrg/s1600/698.png
https://i.guim.co.uk/img/media/6761bf29081fd18320052fedd665200b902a79ba/0_0_698_268/master/698.png?w=620&q=55&auto=format&usm=12&fit=max&s=d3fe28a06878d2e59063b822dab1fc00
https://www.theguardian.com/science/2017/mar/13/did-you-solve-it-pi-day-puzzles-that-will-leave-you-pie-eyed
Solution
A, B and C contain equal amounts of pie.
The tastiest solution is to consider box B as a square box made from four smaller square boxes, and box C as a square box made from 16 smaller square boxes. Pie fills the same percentage of each box, whatever the size of the box. So pie must fill the same percentage of A, B and C. In other words, the amount of pie is the same in each box.
But if you wanted to overcomplicate things, you can also solve with pi. As you remember from school, the area of a circle is pi x (radius)², or πr². Let the radius of the smallest pies (in C) be r, which means the radius of the medium pies (in B) is 2r and the radius of the big pi is 4r. Then the area of pie in A is π (4r)² = 16r², the area of pie in B is 4 x π (2r)² = 16r², and the area of pie in C is 16π (r)² = 16r². All the same!
- A has the most pie: 23 per cent (21 per cent)
- B has the most pie: 2 per cent (3 per cent)
- C has the most pie: 10 per cent (18 per cent)
- A, B and C have equal amounts: 65 per cent (58 per cent)
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgiqLiwxvqvvrM5Md0MLxcD-vIr4I2EqiFlnhSM4qY1HYJ5RocdT7athC1wePyuqrMEMjEWpZV-etRLHJdQpt92gtt41UezQOanRY6SCS8-d16LMqf7RXYIfCqxhY8Dqs7_hOvgyoLxGeBS/s1600/0835e014cdfc1f0c54d45c37a23c897f.jpg
https://s-media-cache-ak0.pinimg.com/564x/08/35/e0/0835e014cdfc1f0c54d45c37a23c897f.jpg
https://www.pinterest.com/pin/Ad8Mev3kpEdrR3RVBJj8z_C2Yxbsafc5aV5h909FIH_0LoDOUv_xtL8/
https://www.pinterest.com/lee7343/rah-rah-riot/
2) One hundred computers are connected in a 10x10 network grid, as below. At the start exactly nine of them are infected with a virus. The virus spreads like this: if any computer is directly connected to at least 2 infected neighbours, it will also become infected.
Will the virus infect all 100 computers?
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4eG3cZABK0FQf_oqNwnKX49ckWymswDu_kYlbc3bs5BjH5EQbEuMYcDZoory1IJTea8_3Dbeqc27RjqnwYoPEDmd3eiH0JlL9lkR8CYaCQEKpJb3s4oDSn1wC-qgj9pAlQvR9-73x_f_H/s1600/804.png
https://i.guim.co.uk/img/media/2292a89b363df5048580b942172ddbaa7b647617/0_0_804_808/master/804.png?w=620&q=55&auto=format&usm=12&fit=max&s=c05d408dc96c432b2b89a47ef796b819
https://www.theguardian.com/science/2017/mar/13/did-you-solve-it-pi-day-puzzles-that-will-leave-you-pie-eyed
The image shows a possible example of the initial infection. You can try to fill it in to see if ultimately the network will consist of 100 orange dots. But the question is not asking what happens to this example. I want to know what will happen given any initial configuration of infected computers.
Solution
No, the virus will not infect all 100 computers.
The solution is simple to understand, although you would have needed some impressive insight to get there on your own.
They key here is the perimeter of the infection. By perimeter, I mean the length of the boundary of the infection.
For the infection to infect all computers, then the final boundary must be 40, since the perimeter of an infected 10x10 square is 10 + 10 + 10 + 10 = 40
Note that the infection can be a single area, or it can be made up of many separate areas. If it is many separate areas, we need to combine the perimeters of all the infected areas.
The perimeter of a single infected computer is 4, as below. So the perimeter of nine infected computers will be maximum 36, which is 4 x 9. (This is the case when no infected computers are adjacent, as in the image above.
But the perimeter may be much lower. For example, if the infected computers are all on the same row, the boundary will only be 9 + 9 + 1 + 1 = 20)
Illustration: Alex Bellos
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBuP4HHkbBOVW14NcEUEpAfS33kSOWLKvo0amA_qOnK9fA864reJ7mHi1g4ZPqQsAvk-Cwp3lMvQaXtqD4wAR_kP2K-ZjLgsYz2bXxxY1lpAkvse4c7Dmkew06Jc-0KIlQEV4NmywqBLSz/s1600/1944.jpg
https://i.guim.co.uk/img/media/01c8870e122edab6788bf559030741d93a80f289/0_689_1944_1166/master/1944.jpg?w=620&q=55&auto=format&usm=12&fit=max&s=1e6148dc1a35855a75a30fad2785ee56
https://www.theguardian.com/science/2017/mar/13/did-you-solve-it-pi-day-puzzles-that-will-leave-you-pie-eyed
The beautiful part of this problem is the fact that the perimeter of the infection never increases as the infection grows. Consider what happens when an uninfected computer is infected by two computers. Two of its sides are absorbed into the infected area, and the other two become part of the perimeter of the infected area. The perimeter loses 2 and gains 2, a net change of 0. We can see this in the mini-grid below. In A, the infected area has a perimeter 8. In B, a new computer is infected, yet the perimeter of the infected area remains 8. Likewise in C, another computer is infected, and the perimeter remains 8.
Illustration: Alex Bellos
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0sr38TWV9VMNm8yNQ_XBsI5L1Xr45DWpmjVu8VPQZ5m_Rn4k-5Etd8SznR2eXB3q5L2UVzvCNwDJTSYk8kWZhvdvKuF5c8BUav3-v_f9W3a91eJPwt73_u3AHDeMHMNlcKEcY6RRrgk-N/s1600/1952.jpg
https://i.guim.co.uk/img/media/ca84bc862d22ad01fb1e4c287ee35171eeeab6a5/0_55_1952_831/master/1952.jpg?w=1065&q=55&auto=format&usm=12&fit=max&s=468ea6a398b9d6a66a1fb52f3fcf8777
https://www.theguardian.com/science/2017/mar/13/did-you-solve-it-pi-day-puzzles-that-will-leave-you-pie-eyed
If an uninfected computer is infected by three computers, three sides are absorbed into the infection, and its fourth side becomes part of the perimeter, a net loss to the perimeter of 2. And if an uninfected computer is infected by four computers, the net loss to the perimeter is 4.
So, if the perimeter of nine infected computers is at most 36, and it can never increase, then it can never reach 40, which means the infection cannot spread to all computers. Solved!
The other question was how this puzzle relates to pi. The connection is not obvious, and it is not even mathematical. The Greek letter pi was chosen as the symbol for the circle ratio because it is an abbreviation of periphery, which is basically the same as perimeter. If you were thinking peripherally, about peripheries, you may have got it. (Here’s a great story about the man who invented pi).
The virus puzzle was written by Brilliant.org's member Ossama Ismail from Alexandria University in Egypt.
- Yes, always: 21 per cent (16 per cent)
- Depends on the starting position: 30 per cent (44 per cent)
- Never: 49 per cent (40 per cent)
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMqkOWjz8TzBL-rQoQxpyIixAeUgDch8oL-Q5uSDyQFnpgKExAmfE8WNJpXMtxJjrx-OUgw4fq9p3C0XRYNRitcOaXwJtKYyFsyWp45GIwnXuH1Oq8jO8D6avhzTMYlrou_QXPWVBLl2UZ/s1600/838da94bcca217f4078cef419b4e227c.jpg
https://s-media-cache-ak0.pinimg.com/564x/83/8d/a9/838da94bcca217f4078cef419b4e227c.jpg
https://www.pinterest.com/pin/508625351651230158/
https://www.pinterest.com/lee7343/rah-rah-riot/
Reference
[1] Alex Bellos, Did you solve it? Pi Day puzzles that will leave you pie-eyed, https://www.theguardian.com/science/2017/mar/13/did-you-solve-it-pi-day-puzzles-that-will-leave-you-pie-eyed#img-5
Links
Brilliant.org - https://brilliant.org/
Here’s a great story about the man who invented pi - https://www.theguardian.com/science/alexs-adventures-in-numberland/2015/mar/14/pi-day-2015-william-jones-the-welshman-who-invented-pi.
Ossama Ismail - https://brilliant.org/profile/ossama-jm61yw/
- https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_G1q-sQBGQBAHgqIzLNZ0ymKK7K6Kto9T7cggoKUnBBF5IYEZ4jMVqUsMha286FVfOjYVWa-X6lJdstLivmAM2eP1SmLiNBc1EaKZpQG6wHWS55w-H8ipNvf6nfvojXK5nwXnxw1QCRmf/s1600/2733.jpg
- https://www.theguardian.com/science/2017/mar/13/did-you-solve-it-pi-day-puzzles-that-will-leave-you-pie-eyed#img-1
- https://www.theguardian.com/science/2017/mar/13/did-you-solve-it-pi-day-puzzles-that-will-leave-you-pie-eyed
- https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDlNuosDXqQFci-tXKOkb2obzQkihjL5XENQbGD3cf5CBUdIlKLw4K4QFfvVpz2u_99rQLOC4gRnjvJr0n4vQ0B7fByZMoecUDqzQQb1g3jYWnCnJUj-uyKWdAg8duqcC4EY_kRnJPOVrg/s1600/698.png
- https://i.guim.co.uk/img/media/6761bf29081fd18320052fedd665200b902a79ba/0_0_698_268/master/698.png?w=620&q=55&auto=format&usm=12&fit=max&s=d3fe28a06878d2e59063b822dab1fc00
- https://www.theguardian.com/science/2017/mar/13/did-you-solve-it-pi-day-puzzles-that-will-leave-you-pie-eyed
- https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgiqLiwxvqvvrM5Md0MLxcD-vIr4I2EqiFlnhSM4qY1HYJ5RocdT7athC1wePyuqrMEMjEWpZV-etRLHJdQpt92gtt41UezQOanRY6SCS8-d16LMqf7RXYIfCqxhY8Dqs7_hOvgyoLxGeBS/s1600/0835e014cdfc1f0c54d45c37a23c897f.jpg
- https://s-media-cache-ak0.pinimg.com/564x/08/35/e0/0835e014cdfc1f0c54d45c37a23c897f.jpg
- https://www.pinterest.com/pin/Ad8Mev3kpEdrR3RVBJj8z_C2Yxbsafc5aV5h909FIH_0LoDOUv_xtL8/
- https://www.pinterest.com/lee7343/rah-rah-riot/
- https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4eG3cZABK0FQf_oqNwnKX49ckWymswDu_kYlbc3bs5BjH5EQbEuMYcDZoory1IJTea8_3Dbeqc27RjqnwYoPEDmd3eiH0JlL9lkR8CYaCQEKpJb3s4oDSn1wC-qgj9pAlQvR9-73x_f_H/s1600/804.png
- https://i.guim.co.uk/img/media/2292a89b363df5048580b942172ddbaa7b647617/0_0_804_808/master/804.png?w=620&q=55&auto=format&usm=12&fit=max&s=c05d408dc96c432b2b89a47ef796b819
- https://www.theguardian.com/science/2017/mar/13/did-you-solve-it-pi-day-puzzles-that-will-leave-you-pie-eyed
- https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBuP4HHkbBOVW14NcEUEpAfS33kSOWLKvo0amA_qOnK9fA864reJ7mHi1g4ZPqQsAvk-Cwp3lMvQaXtqD4wAR_kP2K-ZjLgsYz2bXxxY1lpAkvse4c7Dmkew06Jc-0KIlQEV4NmywqBLSz/s1600/1944.jpg
- https://i.guim.co.uk/img/media/01c8870e122edab6788bf559030741d93a80f289/0_689_1944_1166/master/1944.jpg?w=620&q=55&auto=format&usm=12&fit=max&s=1e6148dc1a35855a75a30fad2785ee56
- https://www.theguardian.com/science/2017/mar/13/did-you-solve-it-pi-day-puzzles-that-will-leave-you-pie-eyed
- https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0sr38TWV9VMNm8yNQ_XBsI5L1Xr45DWpmjVu8VPQZ5m_Rn4k-5Etd8SznR2eXB3q5L2UVzvCNwDJTSYk8kWZhvdvKuF5c8BUav3-v_f9W3a91eJPwt73_u3AHDeMHMNlcKEcY6RRrgk-N/s1600/1952.jpg
- https://i.guim.co.uk/img/media/ca84bc862d22ad01fb1e4c287ee35171eeeab6a5/0_55_1952_831/master/1952.jpg?w=1065&q=55&auto=format&usm=12&fit=max&s=468ea6a398b9d6a66a1fb52f3fcf8777
- https://www.theguardian.com/science/2017/mar/13/did-you-solve-it-pi-day-puzzles-that-will-leave-you-pie-eyed
- https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMqkOWjz8TzBL-rQoQxpyIixAeUgDch8oL-Q5uSDyQFnpgKExAmfE8WNJpXMtxJjrx-OUgw4fq9p3C0XRYNRitcOaXwJtKYyFsyWp45GIwnXuH1Oq8jO8D6avhzTMYlrou_QXPWVBLl2UZ/s1600/838da94bcca217f4078cef419b4e227c.jpg
- https://s-media-cache-ak0.pinimg.com/564x/83/8d/a9/838da94bcca217f4078cef419b4e227c.jpg
- https://www.pinterest.com/pin/508625351651230158/
- https://www.pinterest.com/lee7343/rah-rah-riot/