Take a test Sign in 中文
← Exercise 569 →
Search
Go to
{{searchResults.length}} {{searchResults.length === 1 ? 'result' : 'results'}} for “{{searchWords}}” No results found for “{{searchWords}}” × back to contents
Contents · by chapter
Basic Counting (147)
Balls in Boxes (6)
Probability (142)

Exercises and their solutions

Exercise 569
The set $G$ consists of the points $(x,y)$ with integer coordinates such that $2\le|x|\le5$ and $2\le|y|\le5$. How many squares of side length at least $5$ have their four vertices in $G$?
← Back to Problem 569
Solution
  1. $G$ consists of four $4\times4$ blocks of points, one in each quadrant. Two points of one block are at distance at most $3\sqrt2<5$, so the four vertices lie in four different blocks.
  2. Label the vertices counterclockwise starting in the first quadrant: $(x,y)$, $(x-u,y+v)$, $(x-u-v,y+v-u)$, $(x-v,y-u)$ with $u>0$. Writing $w=u-7$, the conditions on $x$ say $x-2$ lies in $[0,3]$ shifted by each of $0$, $v$, $w$, $v+w$; this leaves $4-|v|-|w|$ values of $x$ when positive, and the same count holds for $y$.
  3. So the number of squares with side vector $(-u,v)$ is $(4-r)^2$ with $r=|v|+|w|\le3$. There are $1,4,8,12$ pairs $(v,w)$ with $r=0,1,2,3$, giving $16+4\cdot9+8\cdot4+12\cdot1=96$ squares.
  4. Exactly one of these has side shorter than $5$: $u=4$, $v=0$, the square with vertices $(\pm2,\pm2)$. So the answer is $96-1=\boxed{95}$.
Search Go to Prev      Next

Contact Us

Thanks! Your message has been sent.
By year