OFFSET
1,1
COMMENTS
Conjecture: this sequence is equivalent to the sorted distinct values of cos(m*arccos(k)), where m and k are integers greater than 1. - Jennifer Buckley, Apr 23 2024
LINKS
Eric Weisstein's World of Mathematics, Pell Equation.
Wikipedia, Chebyshev polynomials: Pell equation definition.
EXAMPLE
a(2)=17. The squarefree part of 17^2 - 1 = 288 is D = 2. But the smallest possible solution to x^2 - 2*y^2 = 1 is not x = 17 but x = 3 (with y = 2).
15 is not a term: the squarefree part of 15^2 - 1 = 224 is D = 14 and x^2 - 14*y^2 = 1 has indeed the minimal solution x = 15 (and y = 4).
MATHEMATICA
squarefreepart[n_] :=
Times @@ Power @@@ ({#[[1]], Mod[#[[2]], 2]} & /@ FactorInteger[n]);
a = {}; NMAX = 3400; dict // Clear;
For[n = 2, n <= NMAX, n++, s = squarefreepart[n^2 - 1];
If[ ! IntegerQ[dict[s]], dict[s] = 1, AppendTo[a, n]]]; a
CROSSREFS
KEYWORD
nonn
AUTHOR
Herbert Kociemba, Jun 02 2022
STATUS
approved