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!)
A022839 Beatty sequence for sqrt(5). 29
2, 4, 6, 8, 11, 13, 15, 17, 20, 22, 24, 26, 29, 31, 33, 35, 38, 40, 42, 44, 46, 49, 51, 53, 55, 58, 60, 62, 64, 67, 69, 71, 73, 76, 78, 80, 82, 84, 87, 89, 91, 93, 96, 98, 100, 102, 105, 107, 109, 111, 114, 116, 118, 120, 122, 125, 127, 129, 131, 134, 136 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
R. L. Graham, S. Lin and C.-S. Lin, Spectra of numbers, Math. Mag. 51 (1978), 174-176.
FORMULA
a(n) = floor(n*sqrt(5)). - G. C. Greubel, Sep 28 2018
MAPLE
a:=n->floor(n*sqrt(5)): seq(a(n), n=1..70); # Muniru A Asiru, Sep 28 2018
MATHEMATICA
With[{c=Sqrt[5]}, Floor[c*Range[70]]] (* Harvey P. Dale, Mar 19 2012 *)
PROG
(Magma) [Floor(n*Sqrt(5)): n in [1..60]]; // Vincenzo Librandi, Oct 22 2011
(PARI) vector(60, n, floor(n*sqrt(5))) \\ G. C. Greubel, Sep 28 2018
(PARI) a(n)=sqrtint(5*n^2) \\ Charles R Greathouse IV, Jan 24 2022
(Python)
from math import isqrt
def A022839(n): return isqrt(5*n**2) # Chai Wah Wu, Sep 07 2022
CROSSREFS
Cf. A026262; complement of A108598.
Sequence in context: A190327 A241176 A184809 * A193766 A262773 A186152
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 June 29 18:05 EDT 2024. Contains 373855 sequences. (Running on oeis4.)