OFFSET
6,1
COMMENTS
a(n) may have more than three distinct positive divisors. The sequence is well-defined for n >= 6 since 2*(n-3) has divisors 1, 2 and n-3 whose sum is n.
The 2022 International Mathematical Olympiad asks for a(2022).
LINKS
David A. Corneth, Table of n, a(n) for n = 6..10000
International Mathematical Olympiad, Shortlisted Problems with Solutions, 2022. Problem N1, p7.
David A. Corneth, PARI program
EXAMPLE
a(6) = 6 because 6=1+2+3 is the smallest solution.
a(7) = 4 because 7=1+2+4 is the smallest solution.
PROG
(Python)
from sympy import divisors
def a(n):
for l in range(1, 3*n):
divs = divisors(l)
if len(divs) < 3:
continue
for i in range(len(divs)):
for j in range(i+1, len(divs)):
for m in range(j+1, len(divs)):
if divs[i] + divs[j] + divs[m] == n:
return l
return None
print([a(n) for n in range(6, 100)])
(PARI) a(n)={for(m=1, 2*(n-3), my(d=divisors(m)); for(i=3, #d, for(j=2, i-1, for(k=1, j-1, if(d[i]+d[j]+d[k]==n, return(m)) )))); oo} \\ Andrew Howroyd, Mar 12 2025
(PARI) \\ See Corneth link
CROSSREFS
KEYWORD
nonn
AUTHOR
Aksel Eide-Hansen, Mar 11 2025
STATUS
approved
