Characterization of inputs achieving g(n) = 2n
Establish that Ron Graham’s sequence g(n) equals 2n if and only if n is prime or n = 6, where g(n) is defined as the least k such that there exists an increasing sequence starting at n and ending at k whose product is a perfect square.
References
In Lemma \ref{lem:gn<2n}, we saw that g(n) ≤ 2n, and in Lemma \ref{lem:gn<2nIsTight}, we saw that this bound is tight, we conjecture that the bound is (almost) only achieved on prime inputs. We achieve the upper bound g(n) = 2n if and only if n is prime or n = 6.
— On a Conjecture about Ron Graham's Sequence
(2410.04728 - Kagey et al., 7 Oct 2024) in Section 4.1 (Conjectures)