OFFSET
1,2
COMMENTS
3-2=1, 6-1=5, 5-2=3, 6-1=5, 5-4=1,..
MATHEMATICA
f1[n_]:=Floor[Sqrt[n]]; f2[n_]:=Last/@FactorInteger[n]=={1, 1}; lst={}; Do[If[f2[n], AppendTo[lst, Abs[(n-f1[n]^2)-((f1[n]+1)^2-n)]]], {n, 0, 5!}]; lst
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Joseph Stephan Orlovsky, Apr 06 2010
STATUS
approved