Take a test Sign in 中文
← Exercise 563 →
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 563
A bug travels in the coordinate plane, moving only along lines parallel to the $x$-axis or the $y$-axis. Let $A=(-2,1)$ and $B=(2,-1)$. Consider all paths of the bug from $A$ to $B$ of length at most $12$. How many points with integer coordinates lie on at least one of these paths?
← Back to Problem 563
Solution
  1. Now $d(A,B)=6$, so the extra length $2d_x+2d_y$ is at most $6$, i.e. $d_x+d_y\le3$.
  2. Rectangle $-2\le x\le2$, $-1\le y\le1$: $15$ points. Left/right strips: $2\cdot3\cdot3=18$. Top/bottom strips: $2\cdot3\cdot5=30$. Corners ($d_x,d_y\ge1$, $d_x+d_y\le3$): $4\cdot3=12$.
  3. Total: $15+18+30+12=\boxed{75}$.
Search Go to Prev      Next

Contact Us

Thanks! Your message has been sent.
By year