Maths Olympiad Prep

Library / /603 of 860

Number theory Difficulty 5.3 AIME, harder Find the answer

Let f(n)f(n) be the largest prime factor of nn. Estimate N=104n=2106f(n21)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,2020(EN103)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. Spacing and $ signs are ignored.

Solution

We remark that f(n21)=max(f(n1),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 2n1062 \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 n1n-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" 1ln106\frac{1}{\ln 10^{6}}, we may replace each XiX_{i} with a Bernoulli random variable that is 1 with probability 1ln106114\frac{1}{\ln 10^{6}} \sim \frac{1}{14} and 0 otherwise. This gives us an estimate of 12141142114=2714\frac{1 \cdot \frac{2 \cdot 14-1}{14^{2}}}{\frac{1}{14}}=\frac{27}{14} However, this estimate has one notable flaw: n1n-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(n1)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,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: Omni-MATH, licensed Apache-2.0. Statement and solution reproduced as published; topic and difficulty added by this site.