Browse · harp
Printimc
counting and probability intermediate
Problem
A rectangular floor that is feet wide and feet long is tiled with one-foot square tiles. A bug walks from one corner to the opposite corner in a straight line. Including the first and the last tile, how many tiles does the bug visit?
(A)
(B)
(C)
(D)
Solution
The number of tiles the bug visits is equal to plus the number of times it crosses a horizontal or vertical line. As it must cross horizontal lines and vertical lines, it must be that the bug visits a total of squares. Note: The general formula for this is , because it is the number of vertical/horizontal lines crossed minus the number of corners crossed (to avoid double counting). In this particular problem, it was (since ), which is , but then you add because the first tile and the last tile are counted, which in the general formula are not counted. One can see why it is gcd(a,b) due to slope Comment: The above note defines a, b incorrectly. One counter example is a 17x9 grid, which should result in 25 tiles. However, . Here is correct when a = 17 and b = 10.
Final answer
C