OFFSET
0,3
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
EXAMPLE
0^2 - sqrt(0) = 0;
1^2 - sqrt(1) = 0;
2^2 - sqrt(2) = 3,
3^2 - sqrt(3) = 7;
4^2 - sqrt(4) = 14.
MAPLE
seq(round(n^2-sqrt(n)), n=0..100); # Robert Israel, Jul 29 2022
MATHEMATICA
Table[Round[n^2 - Sqrt[n]], {n, 0, 100}] (* T. D. Noe, Jun 06 2012 *)
PROG
(Python)
count = 0
while count < 50:
ns = count * count
ns = ns - math.sqrt(count)
ns = round(ns)
print(ns, end=', ')
count += 1
(Python)
from math import isqrt
def A213077(n): return n**2-(m:=isqrt(n))-int((n-m*(m+1)<<2)>=1) # Chai Wah Wu, Jul 29 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Ian Stewart, Jun 04 2012
STATUS
approved