Homepage › Solution manuals › Ivan Niven › An Introduction to the Theory of Numbers › Exercise 3.6.3 (Maximum value of $r(n)$ for positive $n \leq 10000$)
Exercise 3.6.3 (Maximum value of $r(n)$ for positive $n \leq 10000$)
What is the maximum value of for positive ?
Answers
Proof. Note that . If we want to improve this score, we must introduce a fourth prime of the form , the least of them being . But , thus the maximum value of for positive is . □
Check (with the function given in Problem 1):
nrec, maxi = 0, 0 for n in range(1,10001): rec = r(n) if rec > maxi: nrec = n maxi = rec print(nrec, maxi) (1105, 32)