login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A049269
Smallest nonnegative value taken on by nx^2 - 10y^2 for an infinite number of integer pairs (x, y).
0
1, 2, 2, 4, 5, 6, 2, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 2, 1, 10, 11, 12, 2, 6, 10, 10, 2, 2, 10, 20, 6, 22, 15, 6, 25, 26, 3, 28, 29, 0, 1, 2, 2, 4, 5, 4, 2, 8, 1, 10, 6, 10, 10, 14, 5, 14, 17, 10, 1, 20, 6, 22, 2, 6, 10, 14, 2, 10, 6, 30, 31, 8, 10, 10, 35, 4, 22, 38, 6, 40, 26, 18, 2, 44, 45
OFFSET
1,2
MATHEMATICA
f[n_, z_] := FindInstance[x>0 && y>0 && n*x^2 - 10*y^2 == z, {x, y}, Integers, 1]; a[n_] := For[z = 0, True, z = z + GCD[n, 10], fz = f[n, z]; If[fz =!= {}, Print["a(", n, ") = ", z, " {x, y} = ", {x, y} /. fz[[1]]]; Return[z]]]; Array[a, 85] (* Jean-François Alcover, Oct 09 2016 *)
CROSSREFS
Sequence in context: A240851 A261665 A208096 * A085085 A121600 A126870
KEYWORD
nonn
STATUS
approved