OFFSET
1,4
LINKS
Chai Wah Wu, Table of n, a(n) for n = 1..126
Zachary DeStefano, Maximum Sized Sets With Sums That Avoid Squares
FORMULA
The set: {k | k <= n, k == 1 (mod 3)} provides a lower bound: a(n) >= floor((n+2)/3).
EXAMPLE
The first few examples where a(n) increases are {1}, {1,4}, {1,4,6}, and {1,4,6,7}.
PROG
(Python)
from networkx import empty_graph, find_cliques
from itertools import combinations
from sympy.ntheory.primetest import is_square
def A363069(n):
if n == 0: return 0
v = [d for d in range(1, n+1) if not is_square(d<<1)]
G = empty_graph(v)
G.add_edges_from((a, b) for a, b in combinations(v, 2) if not is_square(a+b))
return max(len(c) for c in find_cliques(G)) # Chai Wah Wu, Jan 09 2026
CROSSREFS
KEYWORD
nonn
AUTHOR
Zachary DeStefano, May 16 2023
STATUS
approved
