OFFSET
0,4
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000
FORMULA
a(n)=n^2-floor(sqrt(2*n^2+1/4)-1/2)*floor(sqrt(2*n^2+1/4)+1/2)/2
MAPLE
seq(n^2-floor(sqrt(2*n^2+1/4)-1/2)*floor(sqrt(2*n^2+1/4)+1/2)/2, n=0..100);
MATHEMATICA
smt[n_]:=Module[{x=Floor[(Sqrt[1+8n]-1)/2]}, n-(x(x+1))/2]; smt/@(Range[ 0, 80]^2) (* Harvey P. Dale, May 12 2014 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Floor van Lamoen, Oct 17 2002
STATUS
approved