OFFSET
1,2
MATHEMATICA
f[n_] := Block[{y = 1}, While[ !IntegerQ[ Sqrt[n*y^2 - 1]], y++]; y]; lst = {}; Do[p = Prime@n; If[Mod[p, 4] == 1, AppendTo[lst, f@p]; Print[{n, f@p}]], {n, 66}]; lst
CROSSREFS
KEYWORD
nonn
AUTHOR
Matthijs Coster, Apr 29 2004
EXTENSIONS
Edited by Don Reble, Apr 30 2004
STATUS
approved