Skip to main content

2024 AIME I Problem 12

Problem 12 of 15HarderAlgebraCombinatorics

Define f(x)=∣∣x∣−12∣f(x) = \left||x| - \tfrac{1}{2}\right| and g(x)=∣∣x∣−14∣.g(x) = \left||x| - \tfrac{1}{4}\right|. Find the number of intersections of the graphs of y=4g(f(sin⁡(2πx))) y = 4g(f(\sin(2\pi x))) and x=4g(f(cos⁡(3πy))). x = 4g(f(\cos(3\pi y))).

Your answer

Integer from 0 to 999
Show solution

Solution

Both right-hand sides take values in [0,1],[0, 1], so every intersection lies in the unit square, and there we may write both curves using φ(u)=4∣∣u−12∣−14∣:\varphi(u) = 4\left||u - \tfrac{1}{2}| - \tfrac{1}{4}\right|: the first is y=φ(∣sin⁡2πx∣)y = \varphi(|\sin 2\pi x|) and the second is x=φ(∣cos⁡3πy∣).x = \varphi(|\cos 3\pi y|). As uu increases from 00 to 1,1, φ(u)\varphi(u) runs linearly 1→0→1→0→11 \to 0 \to 1 \to 0 \to 1 with corners at u=14,12,34.u = \frac{1}{4}, \frac{1}{2}, \frac{3}{4}. For x∈[0,1],x \in [0, 1], ∣sin⁡2πx∣|\sin 2\pi x| sweeps [0,1][0, 1] monotonically 44 times, so the first graph consists of 4⋅4=164 \cdot 4 = 16 monotone arcs, each climbing or descending through the full range 0≤y≤10 \le y \le 1 within a narrow vertical strip. Likewise ∣cos⁡3πy∣|\cos 3\pi y| sweeps [0,1][0, 1] monotonically 66 times for y∈[0,1],y \in [0, 1], so the second graph consists of 2424 monotone arcs, each crossing the full range 0≤x≤10 \le x \le 1 within a narrow horizontal strip. Take one arc of each graph, living in the vertical strip [a,b][a, b] and the horizontal strip [c,d].[c, d]. Inside the rectangle [a,b]×[c,d],[a, b] \times [c, d], the first arc joins the bottom edge to the top edge and the second joins the left edge to the right edge, and each is monotone, so the two arcs cross exactly once. This yields 16⋅24=38416 \cdot 24 = 384 intersection points. One further point hides at the corner (1,1),(1, 1), which lies on both graphs: φ(∣sin⁡2π∣)=φ(0)=1\varphi(|\sin 2\pi|) = \varphi(0) = 1 and φ(∣cos⁡3π∣)=φ(1)=1.\varphi(|\cos 3\pi|) = \varphi(1) = 1. Near it the first graph is y≈1−8π(1−x)y \approx 1 - 8\pi(1 - x) while the second satisfies x≈1−18π2(1−y)2,x \approx 1 - 18\pi^2(1 - y)^2, so the two final arcs meet at their shared endpoint (1,1)(1, 1) in addition to the transversal crossing already counted. The total is 384+1=385.384 + 1 = 385.
AoPS wiki

Tagged: function · absolute value · counting intersections

More practice