cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A213077 a(n) = round(n^2 - sqrt(n)).

This page as a plain text file.
%I A213077 #33 Jul 30 2022 08:19:24
%S A213077 0,0,3,7,14,23,34,46,61,78,97,118,141,165,192,221,252,285,320,357,396,
%T A213077 436,479,524,571,620,671,724,779,836,895,955,1018,1083,1150,1219,1290,
%U A213077 1363,1438,1515,1594,1675,1758,1842,1929,2018,2109,2202,2297,2394
%N A213077 a(n) = round(n^2 - sqrt(n)).
%H A213077 Vincenzo Librandi, <a href="/A213077/b213077.txt">Table of n, a(n) for n = 0..1000</a>
%e A213077 0^2 - sqrt(0) = 0;
%e A213077 1^2 - sqrt(1) = 0;
%e A213077 2^2 - sqrt(2) = 3,
%e A213077 3^2 - sqrt(3) = 7;
%e A213077 4^2 - sqrt(4) = 14.
%p A213077 seq(round(n^2-sqrt(n)), n=0..100); # _Robert Israel_, Jul 29 2022
%t A213077 Table[Round[n^2 - Sqrt[n]], {n, 0, 100}] (* _T. D. Noe_, Jun 06 2012 *)
%o A213077 (Python)
%o A213077 count = 0
%o A213077 while count < 50:
%o A213077     ns = count * count
%o A213077     ns = ns - math.sqrt(count)
%o A213077     ns = round(ns)
%o A213077     print(ns, end=',')
%o A213077     count += 1
%o A213077 (Python)
%o A213077 from math import isqrt
%o A213077 def A213077(n): return n**2-(m:=isqrt(n))-int((n-m*(m+1)<<2)>=1) # _Chai Wah Wu_, Jul 29 2022
%Y A213077 Cf. A056847.
%K A213077 nonn
%O A213077 0,3
%A A213077 _Ian Stewart_, Jun 04 2012