Number theoryDifficulty 5.3AIME, harderFind the answer
Let f(n) be the largest prime factor of n. Estimate N=⌊104⋅∑n=2106f(n)∑n=2106f(n2−1)⌋ An estimate of E will receive max(0,⌊20−20(103∣E−N∣)1/3⌋) 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)) Let X be a random variable that evaluates to f(n) for a randomly chosen 2≤n≤106; we essentially want to estimate E[X3]E[max(X1,X2)] where Xi denotes a variable with distribution identical to X (this is assuming that the largest prime factors of n−1 and n+1 are roughly independent). A crude estimate can be compiled by approximating that f(n) is roughly 106 whenever n is prime and 0 otherwise. Since a number in this interval should be prime with "probability" ln1061, we may replace each Xi with a Bernoulli random variable that is 1 with probability ln1061∼141 and 0 otherwise. This gives us an estimate of 1411⋅1422⋅14−1=1427 However, this estimate has one notable flaw: n−1 and n+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) for odd numbers, we essentially replace each Xi with a Bernoulli random variable with expectation 1/7, giving us an estimate of 713, good for 5 points. This estimate can be substantially improved if we consider other possible factors, which increases the correlation between f(n−1) and f(n+1) and thus decreases one's estimate. The correct value of N 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.