A088296
Values of y - x, where x^2 + xy + y^2=p (xA002476).
1, 2, 1, 4, 1, 5, 1, 5, 7, 4, 5, 7, 2, 1, 7, 4, 11, 8, 7, 2, 11, 13, 5, 7, 14, 1, 5, 7, 16, 13, 1, 5, 14, 4, 13, 8, 1, 7, 19, 2, 13, 10, 20, 19, 11, 8, 17, 1, 16, 11, 23, 20, 10, 17, 1, 7, 11, 13, 8, 22, 5, 7, 16, 11, 26, 2, 25, 19, 5, 7, 23, 13, 25, 8, 19, 1, 26, 20, 17, 10, 19, 14, 5, 7, 23
Offset: 1
Keywords
Programs
-
Mathematica
Reap[For[n = 1, n <= 200, n++, If[PrimeQ[p = 6 n + 1], s = Solve[x^2 + x y + y^2 == p && 0 < x < y, {x, y}, Integers]; Sow[y - x /. s[[1]]]]]][[2, 1]] (* Jean-François Alcover, Mar 09 2020 *)
Extensions
More terms from Ray Chandler, Nov 04 2003