OFFSET
1,2
COMMENTS
Erdős has conjectured that a(n) = (1/2 + o(1))*n.
Further estimates can be found on the Erdős Problems site.
LINKS
Sharvil Kesarwani, Table of n, a(n) for n = 1..731 (first 658 terms from Chai Wah Wu)
Thomas Bloom, Problem 302, Erdős Problems.
P. Erdős and R. Graham, Old and new problems and results in combinatorial number theory, Monographies de L'Enseignement Mathématique (1980).
Erdős problems database contributors, Issue #152 linking Erdős problems to the OEIS.
Husnain Raza, Python program.
EXAMPLE
For n = 12, the largest subset of {1,...,12} not containing the subsets {2, 3, 6}, {3, 4, 12}, {4, 12, 6} has size 10.
PROG
(Python)
from itertools import combinations
def A390395(n):
s, t = [], set()
for b in range(1, n+1):
for c in range(b+1, n+1):
a, r = divmod(b*c, b+c)
if not r:
s.append({a, b, c})
t |= {a, b, c}
l = len(t)
for i in range(l, -1, -1):
for d in combinations(t, i):
if not any(x.issubset(d) for x in s):
return n-l+i # Chai Wah Wu, Nov 19 2025
(Python)
from pysat.examples.hitman import Hitman
def A390395(n):
h = Hitman(solver='g42')
for b in range(1, n+1):
for c in range(b+1, n+1):
a, r = divmod(b*c, b+c)
if not r:
h.hit([a, b, c])
return n-len(h.get()) # Chai Wah Wu, Nov 21 2025
CROSSREFS
KEYWORD
nonn
AUTHOR
Husnain Raza, Nov 04 2025
EXTENSIONS
a(40)-a(68) from Chai Wah Wu, Nov 19 2025
STATUS
approved
