2019 AMC 10A Problems/Problem 10
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?
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 ~Williamgolly
Comment: The above note defines a, b incorrectly. One counter example is 17x9 grid, which should result in 25 tiles. However, . Here is correct when a = 17 and b = 10. ~aliciawu
Solution 2 (drawing)
We can also draw a diagram or scale model of the entire rectangular floor (optionally with grid paper and/or a ruler so it will be to scale), then simply count the number of tiles the path crosses. To make this slightly easier, we can divide the full grid into sections, and just draw one of these feet by feet sections.
Though it may appear that the line we drew comes very close to several points, we know that since and are relatively prime (numbers where the only positive integer that divides both of them is 1, a.k.a. numbers with a gcd of 1), the line will not actually pass through any of these points, so the total number of squares crossed will be the same regardless of which side we count. If we count the number of squares the line passes through using the diagram, we get squares. We can then multiply this by 2 to find out the total number of squares the bug passes through on the rectangular floor giving us a total of .
Video Solution by Omega Learn
|2019 AMC 10A (Problems • Answer Key • Resources)|
|1 • 2 • 3 • 4 • 5 • 6 • 7 • 8 • 9 • 10 • 11 • 12 • 13 • 14 • 15 • 16 • 17 • 18 • 19 • 20 • 21 • 22 • 23 • 24 • 25|
|All AMC 10 Problems and Solutions|