Erdős Problem 587 #
Reference: erdosproblems.com/587
MaxNotSqSum N
is the size of the largest subset A
of
{1,...,N}
such that for all non-empty S ⊆ A
, the sum
∑ n ∈ S, n
is not a square.
Equations
- MaxNotSqSum N = (Finset.filter (fun (A : Finset ℕ) => ∀ S ⊆ A, S ≠ ⊥ → ¬IsSquare (∑ n ∈ S, n)) (Finset.Icc 1 N).powerset).sup Finset.card
Instances For
Nguyen and Vu proved that $|A| \ll N^{1/3} (\log N)^{O(1)}$.