OFFSET
1,1
COMMENTS
LINKS
Jean-Christophe Hervé and Donovan Johnson, Table of n, a(n) for n = 1..1000 (first 368 terms from Jean-Christophe Hervé)
FORMULA
EXAMPLE
25 = 5^2 = 16+9; 50 = 2*5^2 = 49+1.
MATHEMATICA
Select[Range[10^4], (IntegerQ[Sqrt[#]] || IntegerQ[Sqrt[#/2]]) && Count[ PowersRepresentations[#, 2, 2], {x_, y_} /; Unequal[0, x, y]] == 1 &]
(* or *) Select[Range[10^4], SquaresR[2, #] == 12 &] (* Jean-François Alcover, Dec 03 2013 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Jean-Christophe Hervé, Dec 01 2013
STATUS
approved