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.

A022850 Integer nearest n*x, where x = sqrt(7).

This page as a plain text file.
%I A022850 #15 Sep 08 2022 08:44:47
%S A022850 0,3,5,8,11,13,16,19,21,24,26,29,32,34,37,40,42,45,48,50,53,56,58,61,
%T A022850 63,66,69,71,74,77,79,82,85,87,90,93,95,98,101,103,106,108,111,114,
%U A022850 116,119,122,124,127,130,132,135,138,140,143,146,148,151,153,156
%N A022850 Integer nearest n*x, where x = sqrt(7).
%H A022850 Vincenzo Librandi, <a href="/A022850/b022850.txt">Table of n, a(n) for n = 0..10000</a>
%t A022850 Table[Round[n*Sqrt[7]], {n,0,60}] (* _G. C. Greubel_, Sep 29 2018 *)
%o A022850 (Magma) [Round(n*Sqrt(7)): n in [0..60]]; // _Vincenzo Librandi_, Oct 24 2011
%o A022850 (PARI) vector(60, n, n--; round(n*sqrt(7))) \\ _G. C. Greubel_, Sep 29 2018
%o A022850 (Python)
%o A022850 from math import isqrt
%o A022850 def A022850(n): return (m:=isqrt(k:=7*n*n))+int(k-m*(m+1)>=1) # _Chai Wah Wu_, Jul 31 2022
%Y A022850 Cf. A022841.
%K A022850 nonn,easy
%O A022850 0,2
%A A022850 _Clark Kimberling_