Skip to main content

2022 AMC 12A Problem 5

Problem 5 of 25EasierAlgebraGeometry

Let the taxicab distance between points (x1,y1)(x_1,y_1) and (x2,y2)(x_2,y_2) in the coordinate plane be 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 20?20?

Answer choices

Show solution

Solution

For each k1,k\ge1, the set x+y=k|x|+|y|=k contains exactly 4k4k lattice points, and k=0k=0 gives the single origin. The total is 1+k=1204k=1+420212=1+840=841. \begin{aligned} &1+\sum_{k=1}^{20}4k=1+4\cdot\frac{20\cdot21}{2} \\ &=1+840=841. \end{aligned} Thus, the correct answer is C.

More practice

Concepts: lattice point · arithmetic sequence

Problem text and solution from the LIVE past-contest archive. See also the AoPS wiki page for community solutions.