1989 AIME Problem 14

Attempt Problem 14 of the 1989 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 1989 AIME solutions, or check the answer key.

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

14.

Given a positive integer n,n, it can be shown that every complex number of the form r+si,r+si, where rr and ss are integers, can be uniquely expressed in the base −n+i-n+i using the integers 0,0, 1,1, …,\ldots, n2n^2 as digits. That is, the equation
r+si=am(−n+i)m+am−1(−n+i)m−1+⋯+a1(−n+i)+a0\begin{aligned}r+si={}&a_m(-n+i)^m\\&+a_{m-1}(-n+i)^{m-1}\\&+\cdots+a_1(-n+i)\\&+a_0\end{aligned}
is true for a unique choice of nonnegative integer mm and digits a0,a_0, a1,a_1, …,\ldots, ama_m chosen from the set {0,1,2,…,n2},\{0,1,2,\ldots,n^2\}, with am≠0.a_m\ne0. We write
r+si=(amam−1…a1a0)−n+ir+si=(a_ma_{m-1}\ldots a_1a_0)_{-n+i}
to denote the base −n+i-n+i expansion of r+si.r+si. There are only finitely many integers k+0ik+0i that have four-digit expansions
k=(a3a2a1a0)−3+ia3≠0.k=(a_3a_2a_1a_0)_{-3+i}\qquad a_3\ne0.
Find the sum of all such k.k.
Answer: 490
Concepts:complex numbernumber basesystem of equations
Small hint:
Compute the second and third powers of −3+i-3+i and set the imaginary part of the expansion equal to zero
Big hint:
The digit bounds leave only two possible triples (a3,a2,a1)(a_3,a_2,a_1); then let a0a_0 range over all digits
Solution:
Let b=−3+i.b=-3+i. Then b2=8−6ib^2=8-6i and b3=−18+26i.b^3=-18+26i.
The imaginary part of a3b3+a2b2+a1b+a0a_3b^3+a_2b^2+a_1b+a_0 is 26a3−6a2+a1.26a_3-6a_2+a_1. Thus a1=6a2−26a3.a_1=6a_2-26a_3. With 1≤a3≤91\leq a_3\leq9 and 0≤a1,a2≤9,0\leq a_1,a_2\leq9, the only possibilities are (a3,a2,a1)=(1,5,4),(a3,a2,a1)=(2,9,2).\begin{gathered}(a_3,a_2,a_1)=(1,5,4),\\(a_3,a_2,a_1)=(2,9,2).\end{gathered}
The corresponding real parts are 10+a010+a_0 and 30+a0,30+a_0, respectively. As a0a_0 ranges from 00 through 9,9, the required sum is (10+11+⋯+19)+(30+31+⋯+39)=145+345=490.\begin{aligned}&(10+11+\cdots+19)\\&\quad+(30+31+\cdots+39)\\&=145+345=490.\end{aligned}
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.