The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A213077 a(n) = round(n^2 - sqrt(n)). 1
0, 0, 3, 7, 14, 23, 34, 46, 61, 78, 97, 118, 141, 165, 192, 221, 252, 285, 320, 357, 396, 436, 479, 524, 571, 620, 671, 724, 779, 836, 895, 955, 1018, 1083, 1150, 1219, 1290, 1363, 1438, 1515, 1594, 1675, 1758, 1842, 1929, 2018, 2109, 2202, 2297, 2394 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
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
Cf. A056847.
Sequence in context: A331240 A146931 A176675 * A294400 A115285 A004232
KEYWORD
nonn
AUTHOR
Ian Stewart, Jun 04 2012
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 19 14:45 EDT 2024. Contains 372698 sequences. (Running on oeis4.)