OFFSET
0,2
COMMENTS
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
FORMULA
a(n) = floor( sqrt(n)+1 )^2 - n.
MAPLE
A080883 := proc(n) (floor(sqrt(n)+1))^2 -n ; end: seq( A080883(n), n=0..40) ; # R. J. Mathar, Aug 08 2009
MATHEMATICA
Table[Floor[1+Sqrt[n]]^2 -n, {n, 0, 90}] (* G. C. Greubel, Nov 07 2019 *)
PROG
(PARI) a(n) = (sqrtint(n)+1)^2-n; \\ Michel Marcus, May 22 2024
(Magma) [Floor(1+Sqrt(n))^2 -n: n in [0..90]]; // G. C. Greubel, Nov 07 2019
(Sage) [floor(1+sqrt(n))^2 -n for n in (0..90)] # G. C. Greubel, Nov 07 2019
(GAP) List([0..90], n-> Int(1+RootInt(n))^2 -n); # G. C. Greubel, Nov 07 2019
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Ralf Stephan, Mar 29 2003
STATUS
approved