Count 'em All 15!

The figure above shows a 20 × 30 20\times30 grid but with 3 of its corners cut off forming triangles.

Count the total number of quadrilaterals in the grid above.

Clarification :

  • A quadrilateral is a polygon that has 4 sides.

This is one part of Quadrilatorics .


The answer is 96042.

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

Kenneth Tan
Jul 12, 2018

Let's pretend the corners aren't cut and the grid is 'perfect'. I'll demonstrate this by patching the 3 cut corners with golden corner squares, and for convenience I'll also label them as A A , B B , C C .

From this note , we know that the number of quadrilaterals in this 'perfect' grid is ( 21 2 ) × ( 31 2 ) = 20 × 30 × 21 × 31 4 = 97650 {21\choose2}\times{31\choose2}=\frac{20\times30\times21\times31}{4}=97650

But this grid isn't actually perfect, just like how our lives aren't perfect. We need to remove some of the affected quadrilaterals that will no longer be quadrilaterals when the golden corner squares are cut.

If a quadrilateral contains any of the golden corner squares and its width and height are either both bigger than 1 or both equal 1, then this quadrilateral will no longer be a quadrilateral when the golden corners are cut and we need to remove it (if only one of its width or height equals 1 and the other is not, then this quadrilateral will be cut into a trapezium, which is still a quadrilateral).


Let's first count the number of quadrilaterals containing golden corner squares with width and height both equal 1 , this is trivial as that would just be the 3 3 golden corner squares themselves.


Let's now count the quadrilaterals containing golden corner squares with width and height both bigger than 1 . If we denote n ( ) n(\square) as the number of quadrilaterals with width and height both bigger than 1 which contain at least the specified corners (for example n ( B , C ) n(B, C) would equal to the number of quadrilaterals with width and height both bigger than 1 that contain the corners B B , C C , which might also contain A A ), then by PIE , the total number of desired quadrilaterals is n ( A ) + n ( B ) + n ( C ) n ( A , B ) n ( B , C ) n ( A , C ) + n ( A , B , C ) n(A)+n(B)+n(C)-n(A, B)-n(B, C)-n(A, C)+n(A, B, C)

Consider n ( A ) n(A) . Note that we can construct quadrilaterals by choosing 2 squares in the grid as its opposite corner squares, with that in mind, if a quadrilateral's top-left corner square lies on A A , then its opposite corner square must not lie on the same row or column as A A (since its width and height must be both bigger than 1), and so the number of possible locations for its bottom-right corner square is n ( A ) = ( 20 1 ) × ( 30 1 ) = 551 n(A)=(20-1)\times(30-1)=551

With similar reasoning, we can also conclude that n ( B ) = n ( C ) = n ( A ) = 551 n(B)=n(C)=n(A)=551 .

Consider n ( A , B ) n(A, B) . To construct these quadrilaterals, its top-left corner square must lie on A A , and its bottom-right corner square must lie on the same column as B B , but not on the same row as A A , so the number of possible locations for its bottom-right corner square is n ( A , B ) = 30 1 = 29 n(A, B)=30-1=29

Now consider n ( B , C ) n(B, C) . To construct these quadrilaterals, its top-right corner square must lie on B B , and its bottom-left corner square must lie on the same row as C C , but not on the same column as B B , so the number of possible locations for its bottom-left corner square is n ( B , C ) = 20 1 = 19 n(B, C)=20-1=19

Lastly let's consider n ( A , C ) n(A, C) and n ( A , B , C ) n(A, B, C) . It's easy to see that n ( A , C ) = n ( A , B , C ) = 1 n(A, C)=n(A, B, C)=1 .

So, n ( A ) + n ( B ) + n ( C ) n ( A , B ) n ( B , C ) n ( A , C ) + n ( A , B , C ) = 3 × 551 29 19 1 + 1 = 1605 \begin{aligned} n(A)+n(B)+n(C)-n(A, B)-n(B, C)-n(A, C)+n(A, B, C)&=3\times551-29-19-1+1 \\ &=1605\end{aligned}


The total number of quadrilaterals we need to remove is 1605 + 3 = 1608 1605+3=1608 , and therefore, the total number of quadrilaterals in the original grid is 97650 1608 = 96042 97650-1608=96042 .

improve more

improve more - 2 years, 9 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...