HMMT 二月 2024 · 冲刺赛 · 第 34 题
HMMT February 2024 — Guts Round — Problem 34
题目详情
英文原题
- [20] Estimate the number of positive integers n ≤ 10 such that n + 1 has a prime factor greater than n .
Submit a positive integer E . If the correct answer is A , you will receive
( ⌊ ⌋)
( )
E 10 − E65
max 0 , 20 · min , + 0 . 5 points.
A 10 − A6
解析
英文解析
- [20] Estimate the number of positive integers n ≤ 10 such that n + 1 has a prime factor greater thann .
( ⌊ ⌋)
( )
E 10 − E65
Submit a positive integer E . If the correct answer is A , you will receive max 0 , 20 · min , + 0 . 5
A 10 − A6
points.
Proposed by: Pitchayut Saengrungkongka
Answer: 757575
Solution: Let N denote 10 . We count by summing over potential prime factors p .6
For any prime p > 2 , we have that p | n + 1 for two values of n if p ≡ 1 (mod 4) , and zero values 2
otherwise. Pretending these values are equally likely to be any of 1 , . . . , p , we expect the number of n
( )
2 Ncorresponding to a 1 (mod 4) prime to be min 2 , .
The number of primes up to x is, by the Prime Number Theorem . Assuming around half of thexplog xprime numbers are 1 (mod 4) , we on average expect some x to be a 1 (mod 4) prime of the time.1
2 log x
Approximating by an integral over potential primes x from 1 to N , using our approximations, gives 2
2 ( )
∫
2 N dx nmin 2 , · .
x 2 log x
We now approximately calculate this integral as follows:1
2 ( ) 2
∫ ∫ ∫
N N N
2 N dx dx Nmin 2 , · = + dxx 2 log x log x x log x
1 1 N
2N
≈ + N (log log( N ) − log log N )
log N = + N log 2 .Nlog N
Here, for the first integral, we estimate log x on [1 , N ] by log N , and for the second integral, we usethat the antiderivative of is log log x .1
x log x
Using log 2 ≈ 0 . 7 , one can estimatelog N = 2 log 1000 ≈ 20 log 2 ≈ 14
giving a final estimate of
6 6
10 / 14 + 10 · 0 . 7 = 771428 .
This estimate yields a score of 15. If one uses the closer estimate log 2 ≈ 0 . 69 , one gets the finalestimate of 761428 , yielding a score of 18.
Here is a code using sympy to calculate the final answer:
from sympy.ntheory import factorintcnt = 0
for n in range (1,10 ** 6+1):
if max(factorint(n ** 2+1, multiple=True)) > n:
cnt += 1
print (cnt)