OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..10000
MATHEMATICA
Table[Round[n*Sqrt[7]], {n, 0, 60}] (* G. C. Greubel, Sep 29 2018 *)
PROG
(Magma) [Round(n*Sqrt(7)): n in [0..60]]; // Vincenzo Librandi, Oct 24 2011
(PARI) vector(60, n, n--; round(n*sqrt(7))) \\ G. C. Greubel, Sep 29 2018
(Python)
from math import isqrt
def A022850(n): return (m:=isqrt(k:=7*n*n))+int(k-m*(m+1)>=1) # Chai Wah Wu, Jul 31 2022
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved