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
KEYWORD
nonn,easy
AUTHOR
David W. Wilson, Mar 26 2005
STATUS
approved