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!)
A022850 Integer nearest n*x, where x = sqrt(7). 2
0, 3, 5, 8, 11, 13, 16, 19, 21, 24, 26, 29, 32, 34, 37, 40, 42, 45, 48, 50, 53, 56, 58, 61, 63, 66, 69, 71, 74, 77, 79, 82, 85, 87, 90, 93, 95, 98, 101, 103, 106, 108, 111, 114, 116, 119, 122, 124, 127, 130, 132, 135, 138, 140, 143, 146, 148, 151, 153, 156 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
LINKS
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
Cf. A022841.
Sequence in context: A184659 A026274 A137910 * A008576 A047622 A240603
KEYWORD
nonn,easy
AUTHOR
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 March 29 08:01 EDT 2024. Contains 371265 sequences. (Running on oeis4.)