A geometry problem by Sunaina Jhamb

Geometry Level 3

There is a rectangle with dimensions 199 × 991 199 \times 991 and it is divided into equivalent number of unit squares that is of dimension 1 × 1 1 \times 1 . Now a diagonal is drawn in that rectangle calculate the number of squares that will be crossed by the diagonal?

1189 991 199 1200

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.

1 solution

Let the height of the rectangular grid to have 199 rows and 991 columns. Let the left-bottom corner of the grid be the origin O ( 0 , 0 ) O(0,0) , then the right-top corner is P ( 991 , 199 ) P(991, 199) . It is obvious that the diagonal passes through 199 rows and 991 columns and there is one count of crossing a square when the diagonal crosses a horizontal or vertical grid line. Since both 199 and 991 are primes, the diagonal passes only two corners of the 1 × 1 1\times 1 square at O ( 0 , 0 ) O(0,0) and P ( 991 , 199 ) P(991, 199) . Therefore, the diagonal crosses 199 horizontal and 991 vertical grid lines with the last two together at P ( 991 , 199 ) P(991,199) , the number of squares crossed is 199 + 991 1 = 1189 199+991-1 = \boxed{1189} .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...