Awesome Problems I've Solved

Awesome Problems I've Solved

May 30, 2026 · 22 min read

hi ^-^ i solve a lot of math, and wanted a place where i document fun, challenging, and elegant mathematical problems i’ve solved over time


2015 AMC 12B #25

Problem

A bee starts flying from point P0P_0. She flies 11 inch due east to point P1P_1. For j1j \geq 1, once the bee reaches PjP_j, she turns 3030^\circ counterclockwise and then flies j+1j+1 inches straight to point Pj+1P_{j+1}. When the bee reaches P2016P_{2016}, she is exactly ab+cda\sqrt{b}+c\sqrt{d} inches away from P0P_0, where aa, bb, cc, and dd are positive integers and bb and dd are square-free. Find a+b+c+da+b+c+d.

Solution

Modeling the Flight with Complex Numbers

Represent the plane as the complex plane and place P0P_0 at the origin.

Let

ω=eiπ/6.\omega=e^{i\pi/6}.

Since the bee turns 3030^\circ after each segment, the kk-th flight segment has:

  • Length kk
  • Direction angle (k1)30(k-1)\cdot 30^\circ

Thus the displacement from Pk1P_{k-1} to PkP_k is

kωk1.k\omega^{k-1}.

Therefore, the position of P2016P_{2016} relative to P0P_0 is

S=k=12016kωk1.S=\sum_{k=1}^{2016}k\omega^{k-1}.

Our goal is to compute S|S|.

Exploiting the Fact that ω12=1\omega^{12}=1

Since

ω12=e2πi=1,\omega^{12}=e^{2\pi i}=1,

and

2016=16812,2016=168\cdot 12,

we group the sum into 168168 blocks of 1212 consecutive terms:

S=m=0167t=112(12m+t)ωt1.S=\sum_{m=0}^{167}\sum_{t=1}^{12}(12m+t)\omega^{t-1}.

Expanding,

S=m=0167(12mt=112ωt1+t=112tωt1).S=\sum_{m=0}^{167}\left(12m\sum_{t=1}^{12}\omega^{t-1}+\sum_{t=1}^{12}t\omega^{t-1}\right).

Because ω\omega is a primitive 1212th root of unity,

t=112ωt1=1+ω+ω2++ω11=0.\sum_{t=1}^{12}\omega^{t-1} = 1+\omega+\omega^2+\cdots+\omega^{11} = 0.

Hence all terms involving 12m12m vanish, giving

S=168t=112tωt1.S = 168\sum_{t=1}^{12}t\omega^{t-1}.

Let

C=t=112tωt1.C=\sum_{t=1}^{12}t\omega^{t-1}.

Then

S=168C.S=168C.

Evaluating the Root-of-Unity Sum

Consider the finite geometric series

1+x+x2++x11=1x121x.1+x+x^2+\cdots+x^{11} = \frac{1-x^{12}}{1-x}.

Differentiate both sides:

t=112txt1=12x11(1x)+(1x12)(1x)2.\sum_{t=1}^{12}t\,x^{t-1} = \frac{-12x^{11}(1-x)+(1-x^{12})}{(1-x)^2}.

Substituting x=ωx=\omega and using ω12=1\omega^{12}=1 gives

C=12ω11(1ω)(1ω)2=12ω111ω.C = \frac{-12\omega^{11}(1-\omega)}{(1-\omega)^2} = -\frac{12\omega^{11}}{1-\omega}.

Since ω11=ω1\omega^{11}=\omega^{-1},

C=12ω11ω.C = -\frac{12\omega^{-1}}{1-\omega}.

Multiplying numerator and denominator by ω\omega,

C=12ωω2.C = -\frac{12}{\omega-\omega^2}.

Factoring ω\omega from the denominator,

C=12ω(1ω)=121ω.C = -\frac{12}{\omega(1-\omega)} = -\frac{12}{1-\omega}.

Therefore,

S=168(121ω)=20161ω.S = 168\left(-\frac{12}{1-\omega}\right) = -\frac{2016}{1-\omega}.

Computing 11ω\frac{1}{1-\omega}

Since

ω=cos30+isin30=32+i2,\omega = \cos 30^\circ+i\sin 30^\circ = \frac{\sqrt3}{2}+\frac{i}{2},

we have

1ω=232i2.1-\omega = \frac{2-\sqrt3}{2}-\frac{i}{2}.

A standard identity gives

11eiθ=12+i2cot(θ2).\frac{1}{1-e^{i\theta}} = \frac12+\frac{i}{2}\cot\left(\frac{\theta}{2}\right).

Using θ=π6\theta=\frac{\pi}{6},

11ω=12+i2cot15.\frac{1}{1-\omega} = \frac12+\frac{i}{2}\cot 15^\circ.

Since

cot15=2+3,\cot 15^\circ=2+\sqrt3,

it follows that

11ω=12+i2(2+3).\frac{1}{1-\omega} = \frac12+\frac{i}{2}(2+\sqrt3).

Therefore,

S=2016(12+i2(2+3))=10081008(2+3)i.S = -2016\left(\frac12+\frac{i}{2}(2+\sqrt3)\right) = -1008-1008(2+\sqrt3)i.

Finding the Distance from the Origin

The distance from P0P_0 to P2016P_{2016} is

S=10081+(2+3)2.|S| = 1008\sqrt{1+(2+\sqrt3)^2}.

Compute the quantity inside the square root:

1+(2+3)2=1+4+43+3=8+43.1+(2+\sqrt3)^2 = 1+4+4\sqrt3+3 = 8+4\sqrt3.

Factor:

8+43=4(2+3).8+4\sqrt3 = 4(2+\sqrt3).

Hence

S=20162+3.|S| = 2016\sqrt{2+\sqrt3}.

Use the identity

2+3=(3+1)22.2+\sqrt3 = \frac{(\sqrt3+1)^2}{2}.

Thus

2+3=3+12=6+22.\sqrt{2+\sqrt3} = \frac{\sqrt3+1}{\sqrt2} = \frac{\sqrt6+\sqrt2}{2}.

Substituting,

S=20166+22=10086+10082.|S| = 2016\cdot\frac{\sqrt6+\sqrt2}{2} = 1008\sqrt6+1008\sqrt2.

Therefore,

a=1008,b=6,c=1008,d=2.a=1008,\quad b=6,\quad c=1008,\quad d=2.

Computing the Requested Sum

a+b+c+d=1008+6+1008+2=2024.a+b+c+d = 1008+6+1008+2 = 2024.

Final Answer: 2024


2004 AIME I #12

Problem

Let SS be the set of ordered pairs (x,y)(x,y) such that 0<x10<x\le1, 0<y10<y\le1, and both

log2(1x)\left\lfloor \log_2\left(\frac{1}{x}\right)\right\rfloor

and

log5(1y)\left\lfloor \log_5\left(\frac{1}{y}\right)\right\rfloor

are even integers. Given that the area of the graph of SS is mn\frac{m}{n}, where mm and nn are relatively prime positive integers, find m+nm+n.

Solution

Determining the Valid Values of xx

Suppose

log2(1x)=2k\left\lfloor \log_2\left(\frac{1}{x}\right)\right\rfloor=2k

for some integer k0k\ge0.

By the definition of the floor function,

2klog2(1x)<2k+1.2k\le\log_2\left(\frac{1}{x}\right)<2k+1.

Exponentiating base 22 gives

22k1x<22k+1.2^{2k}\le\frac{1}{x}<2^{2k+1}.

Taking reciprocals reverses the inequalities:

2(2k+1)<x22k.2^{-(2k+1)}<x\le2^{-2k}.

Therefore, for each k0k\ge0, the valid interval for xx is

(2(2k+1),22k].\left(2^{-(2k+1)},\,2^{-2k}\right].

The length of this interval is

22k2(2k+1)=2(2k+1).2^{-2k}-2^{-(2k+1)} = 2^{-(2k+1)}.

Hence the total measure of all valid xx-values is

k=02(2k+1)=12k=0(14)k.\sum_{k=0}^{\infty}2^{-(2k+1)} = \frac{1}{2}\sum_{k=0}^{\infty}\left(\frac{1}{4}\right)^k.

Using the geometric series formula,

121114=1243=23.\frac{1}{2}\cdot\frac{1}{1-\frac{1}{4}} = \frac{1}{2}\cdot\frac{4}{3} = \frac{2}{3}.

Thus the total valid length in the xx-direction is

23.\frac{2}{3}.

Determining the Valid Values of yy

Similarly, suppose

log5(1y)=2m\left\lfloor \log_5\left(\frac{1}{y}\right)\right\rfloor=2m

for some integer m0m\ge0.

Then

2mlog5(1y)<2m+1.2m\le\log_5\left(\frac{1}{y}\right)<2m+1.

Exponentiating base 55 yields

52m1y<52m+1.5^{2m}\le\frac{1}{y}<5^{2m+1}.

Taking reciprocals,

5(2m+1)<y52m.5^{-(2m+1)}<y\le5^{-2m}.

The length of this interval is

52m5(2m+1)=45(2m+1).5^{-2m}-5^{-(2m+1)} = 4\cdot5^{-(2m+1)}.

Therefore the total measure of all valid yy-values is

m=045(2m+1)=45m=0(125)m.\sum_{m=0}^{\infty}4\cdot5^{-(2m+1)} = \frac{4}{5}\sum_{m=0}^{\infty}\left(\frac{1}{25}\right)^m.

Again applying the geometric series formula,

4511125=452524=56.\frac{4}{5}\cdot\frac{1}{1-\frac{1}{25}} = \frac{4}{5}\cdot\frac{25}{24} = \frac{5}{6}.

Thus the total valid length in the yy-direction is

56.\frac{5}{6}.

Computing the Area of SS

The conditions on xx and yy are independent, so the area of SS is the product of the valid lengths in the two directions:

Area(S)=2356=1018=59.\text{Area}(S) = \frac{2}{3}\cdot\frac{5}{6} = \frac{10}{18} = \frac{5}{9}.

Hence

mn=59,\frac{m}{n} = \frac{5}{9},

so

m=5,n=9.m=5, \qquad n=9.

Computing m+nm+n

Therefore,

m+n=5+9=14.m+n = 5+9 = 14.

Final Answer: 14


2010 AIME I #2

Problem

For a positive integer nn, let θ(n)\theta(n) denote the number of integers 0<x<20100<x<2010 such that

x2nx^2-n

is divisible by 20102010.

Determine the remainder when

n=02009nθ(n)\sum_{n=0}^{2009} n\cdot\theta(n)

is divided by 20102010.

Solution

Interpreting the Sum

For each integer xx with 0<x<20100<x<2010, there is exactly one residue

n{0,1,,2009}n \in \{0,1,\dots,2009\}

such that

x2n(mod2010).x^2 \equiv n \pmod{2010}.

The value θ(n)\theta(n) counts how many integers xx produce the residue nn.

Therefore, each xx contributes its corresponding residue nn exactly once to the sum

n=02009nθ(n).\sum_{n=0}^{2009} n\cdot\theta(n).

Hence

n=02009nθ(n)=x=12009(x2mod2010).\sum_{n=0}^{2009} n\cdot\theta(n) = \sum_{x=1}^{2009} (x^2 \bmod 2010).

Reducing Modulo 20102010

Since

x2mod2010x2(mod2010),x^2 \bmod 2010 \equiv x^2 \pmod{2010},

we have

n=02009nθ(n)x=12009x2(mod2010).\sum_{n=0}^{2009} n\cdot\theta(n) \equiv \sum_{x=1}^{2009} x^2 \pmod{2010}.

Thus we only need to compute

x=12009x2.\sum_{x=1}^{2009} x^2.

Using the sum-of-squares formula,

x=12009x2=2009201040196.\sum_{x=1}^{2009} x^2 = \frac{2009\cdot2010\cdot4019}{6}.

Since

20106=335,\frac{2010}{6}=335,

this becomes

20093354019.2009\cdot335\cdot4019.

Computing the Remainder

Working modulo 20102010,

20091(mod2010)2009 \equiv -1 \pmod{2010}

and

40191(mod2010).4019 \equiv -1 \pmod{2010}.

Therefore,

20093354019(1)335(1)=335(mod2010).2009\cdot335\cdot4019 \equiv (-1)\cdot335\cdot(-1) = 335 \pmod{2010}.

So the required remainder is

335.335.

Final Answer: 335


2025 AMC 12A #1

Problem

2025 AMC 12A #1 Diagram

Solution

Counting Lattice Points

Let the side lengths of RR, SS, and TT be rr, ss, and tt, respectively.

Since each square is aligned with the lattice, a square of side length mm contains

(m+1)2(m+1)^2

lattice points.

Thus,

N(R)=(r+1)2,N(S)=(s+1)2.N(R)=(r+1)^2, \qquad N(S)=(s+1)^2.

We are given

(r+1)2=94(s+1)2.(r+1)^2=\frac94(s+1)^2.

Since r+1r+1 and s+1s+1 are integers,

r+1=3k,s+1=2kr+1=3k, \qquad s+1=2k

for some positive integer kk.

Hence

r=3k1,s=2k1.r=3k-1, \qquad s=2k-1.

Counting Points in RSR\cup S

Since RR and SS meet along the yy-axis and r>sr>s, their intersection contains exactly

s+1s+1

lattice points.

Therefore

N(RS)=(r+1)2+(s+1)2(s+1).N(R\cup S) = (r+1)^2+(s+1)^2-(s+1).

Substituting r+1=3kr+1=3k and s+1=2ks+1=2k gives

N(RS)=9k2+4k22k=13k22k.N(R\cup S) = 9k^2+4k^2-2k = 13k^2-2k.

Since TT contains one-fourth of the lattice points in RSR\cup S,

(t+1)2=13k22k4.(t+1)^2 = \frac{13k^2-2k}{4}.

Using the Fraction Condition

Let x1x_1 be the width of STS\cap T and x2x_2 the width of RTR\cap T.

Then

t=x1+x2.t=x_1+x_2.

Since TT has height tt, the intersections contain

N(ST)=(x1+1)(t+1),N(S\cap T)=(x_1+1)(t+1),

and

N(RT)=(x2+1)(t+1)N(R\cap T)=(x_2+1)(t+1)

lattice points.

The given ratio becomes

(x1+1)(t+1)(s+1)2=27(x2+1)(t+1)(r+1)2.\frac{(x_1+1)(t+1)}{(s+1)^2} = 27\cdot \frac{(x_2+1)(t+1)}{(r+1)^2}.

Using

(r+1)2=94(s+1)2,(r+1)^2=\frac94(s+1)^2,

we obtain

x1+1=12(x2+1).x_1+1 = 12(x_2+1).

Hence

x1=12x2+11.x_1=12x_2+11.

Since

t=x1+x2,t=x_1+x_2,

it follows that

t=13x2+11.t=13x_2+11.

Let

X=13x2+12=t+1.X=13x_2+12=t+1.

Deriving a Pell Equation

Since

(t+1)2=13k22k4,(t+1)^2 = \frac{13k^2-2k}{4},

and k=s+12k=\frac{s+1}{2}, letting

M=s+1M=s+1

gives

4X2=13M24M4.4X^2 = \frac{13M^2-4M}{4}.

Multiplying by 44,

16X2=13M24M.16X^2 = 13M^2-4M.

Rearranging,

13M24M16X2=0.13M^2-4M-16X^2=0.

Multiply by 1313:

169M252M208X2=0.169M^2-52M-208X^2=0.

Complete the square:

(13M2)24208X2=0.(13M-2)^2-4-208X^2=0.

Thus

(13M2)2208X2=4.(13M-2)^2-208X^2=4.

Dividing by 44 gives

(13M22)252X2=1.\left(\frac{13M-2}{2}\right)^2-52X^2=1.

Let

Y=13M22.Y=\frac{13M-2}{2}.

Then

Y252X2=1.Y^2-52X^2=1.

This is a Pell equation.

Solving the Pell Equation

The fundamental positive solution of

Y252X2=1Y^2-52X^2=1

is

(Y,X)=(649,90).(Y,X)=(649,90).

Since

X=t+1,X=t+1,

we obtain

t=89.t=89.

Also,

Y=13M22=649,Y=\frac{13M-2}{2}=649,

so

13M2=1298,13M-2=1298,

and therefore

M=100.M=100.

Hence

s=M1=99.s=M-1=99.

Since

r+1=32(s+1),r+1=\frac32(s+1),

we have

r+1=150,r+1=150,

so

r=149.r=149.

Computing the Sum

Therefore

r+s+t=149+99+89=337.r+s+t = 149+99+89 = 337.

Final Answer: 337


HMMT 2025 Problem 3

Problem

A polynomial P(x)P(x) is a base-nn polynomial if it is of the form

adxd+ad1xd1++a1x+a0,a_dx^d+a_{d-1}x^{d-1}+\cdots+a_1x+a_0,

where each aia_i is an integer between 00 and n1n-1 inclusive and ad>0a_d>0.

Find the largest positive integer nn such that for any real number cc, there exists at most one base-nn polynomial P(x)P(x) for which

P(2+3)=c.P(\sqrt2+\sqrt3)=c.

Solution

Reformulating the Uniqueness Condition

Let

α=2+3.\alpha=\sqrt2+\sqrt3.

Suppose two distinct base-nn polynomials P(x)P(x) and Q(x)Q(x) satisfy

P(α)=Q(α).P(\alpha)=Q(\alpha).

Then their difference

D(x)=P(x)Q(x)D(x)=P(x)-Q(x)

is a nonzero polynomial satisfying

D(α)=0.D(\alpha)=0.

Since the coefficients of PP and QQ lie in

{0,1,,n1},\{0,1,\dots,n-1\},

the coefficients of DD all lie in

[(n1),n1].[-(n-1), n-1].

Therefore uniqueness holds exactly when every nonzero integer polynomial vanishing at α\alpha has at least one coefficient whose absolute value is at least nn.

Our task is therefore to determine the smallest possible value of

maxdi\max |d_i|

among all nonzero integer polynomials

D(x)D(x)

satisfying

D(α)=0.D(\alpha)=0.

Finding the Minimal Polynomial of α\alpha

We compute:

α2=(2+3)2=5+26.\alpha^2 = (\sqrt2+\sqrt3)^2 = 5+2\sqrt6.

Hence

α25=26.\alpha^2-5=2\sqrt6.

Squaring again gives

(α25)2=24.(\alpha^2-5)^2=24.

Expanding,

α410α2+25=24,\alpha^4-10\alpha^2+25=24,

so

α410α2+1=0.\alpha^4-10\alpha^2+1=0.

Thus the minimal polynomial of α\alpha is

m(x)=x410x2+1.m(x)=x^4-10x^2+1.

Any integer polynomial vanishing at α\alpha must therefore be a multiple of m(x)m(x).

Producing a Small Multiple

Consider

(x2+1)m(x).(x^2+1)m(x).

Multiplying,

(x2+1)(x410x2+1)=x69x49x2+1.(x^2+1)(x^4-10x^2+1) = x^6-9x^4-9x^2+1.

The coefficients are

1,0,9,0,9,0,1.1, 0, -9, 0, -9, 0, 1.

Therefore there exists a nonzero polynomial vanishing at α\alpha whose coefficients all have absolute value at most 99.

Consequently, uniqueness fails for

n=10,n=10,

because the coefficients lie in

[9,9].[-9,9].

Thus

n9.n\le 9.

Showing That 9 Is Best Possible

We now prove that every nonzero multiple of

m(x)=x410x2+1m(x)=x^4-10x^2+1

has some coefficient whose absolute value is at least 99.

Let

Q(x)=m(x)G(x),Q(x)=m(x)G(x),

where

G(x)=gixiG(x)=\sum g_i x^i

is a nonzero integer polynomial.

Let

M=maxgi.M=\max |g_i|.

Choose an index kk such that

gk=M.|g_k|=M.

The coefficient of xk+2x^{k+2} in Q(x)Q(x) equals

qk+2=gk+210gk+gk2.q_{k+2} = g_{k+2}-10g_k+g_{k-2}.

Therefore

qk+210gkgk+2gk210MMM=8M.|q_{k+2}| \ge 10|g_k|-|g_{k+2}|-|g_{k-2}| \ge 10M-M-M = 8M.

Since M1M\ge1,

qk+28.|q_{k+2}|\ge8.

If every coefficient of QQ had absolute value at most 88, equality would have to hold throughout.

That forces

gk+2=gk2=M|g_{k+2}|=|g_{k-2}|=M

and all three terms must have the same sign.

Repeating the argument shows that infinitely many coefficients of GG would have magnitude MM, impossible because GG has finite degree.

Hence no nonzero multiple of m(x)m(x) can have all coefficients bounded by 88.

Therefore every nonzero polynomial vanishing at α\alpha has a coefficient with absolute value at least

9.9.

Finishing the Argument

We have shown:

  • There exists a nonzero polynomial vanishing at α\alpha with all coefficients bounded by 99.
  • No nonzero polynomial vanishing at α\alpha can have all coefficients bounded by 88.

Therefore the smallest possible coefficient bound is exactly

9.9.

Thus uniqueness holds for base-99 polynomials and fails for base-1010 polynomials.

Hence the largest possible value of nn is

9.\boxed{9}.

Final Answer: 9