The OEIS is supported by the many generous donors to the OEIS Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A099188 a(n) = 2*ceiling(n/sqrt(2)). 2
 0, 2, 4, 6, 6, 8, 10, 10, 12, 14, 16, 16, 18, 20, 20, 22, 24, 26, 26, 28, 30, 30, 32, 34, 34, 36, 38, 40, 40, 42, 44, 44, 46, 48, 50, 50, 52, 54, 54, 56, 58, 58, 60, 62, 64, 64, 66, 68, 68, 70, 72, 74, 74, 76, 78, 78, 80, 82, 84, 84, 86, 88, 88, 90, 92, 92, 94, 96, 98, 98, 100 (list; graph; refs; listen; history; text; internal format)
 OFFSET 0,2 COMMENTS Conjecturally, length of shortest polygonal path from (0,0) to (n,n) with integer vertices and edges. This is true for n <= 10000. LINKS Reinhard Zumkeller, Table of n, a(n) for n = 0..10000 FORMULA a(n) = 2*A049474(n). MATHEMATICA 2Ceiling[Range[0, 80]/Sqrt[2]] (* Harvey P. Dale, Dec 21 2011 *) PROG (PARI) a(n)=if(n, 2+2*sqrtint((n^2-1)\2)) \\ Charles R Greathouse IV, Jan 10 2013 (Haskell) a099188 = (* 2) . a049474 -- Reinhard Zumkeller, Jul 03 2015 (Magma) [2*Ceiling(n/Sqrt(2)): n in [0..100]]; // G. C. Greubel, Aug 17 2018 CROSSREFS Sequence in context: A020887 A050827 A082990 * A085271 A347376 A260812 Adjacent sequences: A099185 A099186 A099187 * A099189 A099190 A099191 KEYWORD nonn,easy AUTHOR David W. Wilson, Mar 26 2005 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.

Last modified September 25 16:26 EDT 2023. Contains 365648 sequences. (Running on oeis4.)