[go: up one dir, main page]

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!)
A195119 a(n) = 2*n - floor(n*sqrt(2)). 1
0, 1, 2, 2, 3, 3, 4, 5, 5, 6, 6, 7, 8, 8, 9, 9, 10, 10, 11, 12, 12, 13, 13, 14, 15, 15, 16, 16, 17, 17, 18, 19, 19, 20, 20, 21, 22, 22, 23, 23, 24, 25, 25, 26, 26, 27, 27, 28, 29, 29, 30, 30, 31, 32, 32, 33, 33, 34, 34, 35, 36, 36, 37, 37, 38, 39, 39, 40, 40, 41, 42, 42 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
COMMENTS
Not A077467, which has only one 17; not A098294, which has two 41's.
LINKS
FORMULA
a(n) = A005843(n) - A001951(n). - Michel Marcus, Sep 30 2018
MAPLE
seq(2*n-floor(n*sqrt(2)), n=0..80); # Muniru A Asiru, Sep 30 2018
MATHEMATICA
Table[2*n - Floor[n*Sqrt[2]], {n, 0, 100}] (* G. C. Greubel, Sep 29 2018 *)
PROG
(Magma) [2*n-Floor(n*Sqrt(2)): n in [0..70]]; // Vincenzo Librandi, Sep 12 2011
(PARI) vector(100, n, n--; 2*n-floor(n*sqrt(2))) \\ G. C. Greubel, Sep 29 2018
CROSSREFS
Cf. A005843 (2n), A001951 (floor(n*sqrt(2))).
Sequence in context: A194979 A366502 A098294 * A077467 A005378 A247911
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Sep 09 2011
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 August 30 13:06 EDT 2024. Contains 375543 sequences. (Running on oeis4.)