Maths Olympiad Prep

Library / /166 of 520

Combinatorics Difficulty 2.6 Junior Find the answer

The taxicab distance\textit{taxicab distance} between points (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2) in the coordinate plane is given by x1x2+y1y2.|x_1 - x_2| + |y_1 - y_2|.
For how many points PP with integer coordinates is the taxicab distance between PP and the origin less than or equal to 2020?

Pick one

Solution

Let us consider the number of points for a certain xx-coordinate. For any xx, the viable points are in the range [20+x,20x][-20 + |x|, 20 - |x|]. This means that our total sum is equal to
1+3+5++41+39+37++1=(1+3+5++39)+(1+3+5++41)=202+212=292=(C)841.\begin{align*} 1 + 3 + 5 + \cdots + 41 + 39 + 37 + \cdots + 1 &= (1 + 3 + 5 + \cdots + 39) + (1 + 3 + 5 + \cdots + 41) \\ & = 20^2 + 21^2 \\ & = 29^2 \\ &= \boxed{\textbf{(C)} \, 841}. \end{align*}
~mathboy100

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic and difficulty added by this site.