1994 AIME Problem 7

Attempt Problem 7 of the 1994 AIME below, then check your answer against the professionally curated solution from LIVE by Po-Shen Loh. You can also try the full timed exam, view all 1994 AIME solutions, or check the answer key.

All problems are used with official legal permission of the Mathematical Association of America (MAA).

7.

For certain ordered pairs (a,b)(a,b) of real numbers, the system of equations ax+by=1,x2+y2=50\begin{aligned}ax+by&=1,\\x^2+y^2&=50\end{aligned} has at least one solution, and each solution is an ordered pair (x,y)(x,y) of integers. How many such ordered pairs (a,b)(a,b) are there?
Answer: 72
Concepts:lattice pointchordtangent line
Small hint:
List all integer points on x2+y2=50x^2+y^2=50
Big hint:
Count both chords through two non-antipodal lattice points and tangents at one lattice point
Solution:
The circle has the 1212 lattice points obtained from (±1,±7),(\pm1,\pm7), (±5,±5),(\pm5,\pm5), and (±7,±1).(\pm7,\pm1). A secant satisfying the condition is determined by any two non-antipodal lattice points. This gives (122)−6=60\binom{12}{2}-6=60 lines; antipodal pairs are excluded because their line passes through the origin and cannot have equation ax+by=1.ax+by=1. There are also 1212 tangents, one at each lattice point. Each line has a unique normalization ax+by=1,ax+by=1, so the total is 60+12=72.60+12=72.
LIVE by Po-Shen Loh
Programs

LIVE Classes

Self-Paced Classes

Stars

Scholarship

About Us

Who Is Po-Shen Loh?

Email Contact

Newsletter

Jobs

Become a Star

For a more Thought Full world.

© 2026 Expii, Inc.