Maths Olympiad Prep

Library / HMMT February /706 of 1302

HMMT February

Number theory Difficulty 5.3 AIME, harder Find the answer

Let f(n)f(n) be the largest prime factor of nn. Estimate N=⌊104⋅∑n=2106f(n2−1)∑n=2106f(n)⌋N=\left\lfloor 10^{4} \cdot \frac{\sum_{n=2}^{10^{6}} f\left(n^{2}-1\right)}{\sum_{n=2}^{10^{6}} f(n)}\right\rfloor An estimate of EE will receive max⁡(0,⌊20−20(∣E−N∣103)1/3⌋)\max \left(0,\left\lfloor 20-20\left(\frac{|E-N|}{10^{3}}\right)^{1 / 3}\right\rfloor\right) points.

A number or a short expression. Fractions can be typed as 3/2, and spacing doesn't matter.

Solution

We remark that f(n2−1)=max⁡(f(n−1),f(n+1))f\left(n^{2}-1\right)=\max (f(n-1), f(n+1)) Let XX be a random variable that evaluates to f(n)f(n) for a randomly chosen 2≤n≤1062 \leq n \leq 10^{6}; we essentially want to estimate E[max⁡(X1,X2)]E[X3]\frac{\mathbb{E}\left[\max \left(X_{1}, X_{2}\right)\right]}{\mathbb{E}\left[X_{3}\right]} where XiX_{i} denotes a variable with distribution identical to XX (this is assuming that the largest prime factors of n−1n-1 and n+1n+1 are roughly independent). A crude estimate can be compiled by approximating that f(n)f(n) is roughly 10610^{6} whenever nn is prime and 0 otherwise. Since a number in this interval should be prime with "probability" 1ln⁡106\frac{1}{\ln 10^{6}}, we may replace each XiX_{i} with a Bernoulli random variable that is 1 with probability 1ln⁡106∼114\frac{1}{\ln 10^{6}} \sim \frac{1}{14} and 0 otherwise. This gives us an estimate of 1⋅2⋅14−1142114=2714\frac{1 \cdot \frac{2 \cdot 14-1}{14^{2}}}{\frac{1}{14}}=\frac{27}{14} However, this estimate has one notable flaw: n−1n-1 and n+1n+1 are more likely to share the same primality than arbitrarily chosen numbers, since they share the same parity. So, if we restrict our sums to only considering f(n)f(n) for odd numbers, we essentially replace each XiX_{i} with a Bernoulli random variable with expectation 1/71 / 7, giving us an estimate of 137\frac{13}{7}, good for 5 points. This estimate can be substantially improved if we consider other possible factors, which increases the correlation between f(n−1)f(n-1) and f(n+1)f(n+1) and thus decreases one's estimate. The correct value of NN is 18215.

Want a route through all this instead of an archive? The track puts 2,604 problems in a working order, from Junior Challenge level to the IMO shortlist.

Source: Omni-MATH, licensed Apache-2.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.