OFFSET
1,2
COMMENTS
The average distance is actually d(n) = 2*n!!/(n+1)!! if n is odd, and d(n) = (1*Pi)*4*n!!/(n+1)!! if n is even. So a(n) = numerator(d(n)) if n is odd and a(n) = numerator(Pi*d(n)) if n is even. - Michel Marcus, May 24 2013
REFERENCES
S. Janson, On the traveling fly problem, Graph Theory Notes of New York, Vol. XXXI, 17, 1996.
LINKS
PROG
(PARI) a(n) = {if (n % 2, eo = 2, eo = 4); numerator(eo*prod(i=0, floor((n-1)/2), n-2*i)/prod(i=0, floor(n/2), n+1-2*i)); } \\ Michel Marcus, May 24 2013
CROSSREFS
KEYWORD
nonn,frac
AUTHOR
STATUS
approved