(MAGMAMagma) [Factorial(2*n+1)/Factorial(n)^2 - 4^n : n in [0..30]]; // Wesley Ivan Hurt, Mar 24 2015
(MAGMAMagma) [0] cat [n le 1 select 2 else 4*Self(n-1)+ Binomial(2*n, n): n in [1..30]]; // Vincenzo Librandi, Mar 25 2015
(MAGMAMagma) [Factorial(2*n+1)/Factorial(n)^2 - 4^n : n in [0..30]]; // Wesley Ivan Hurt, Mar 24 2015
(MAGMAMagma) [0] cat [n le 1 select 2 else 4*Self(n-1)+ Binomial(2*n, n): n in [1..30]]; // Vincenzo Librandi, Mar 25 2015
editing
approved
W. Feller, W., "An Introduction to Probability Theory and its Applications", , Vol 1, 3rd ed. New York: Wiley, pp. 67-97, 1968.
approved
editing
editing
approved
a(n) = 2*A000531(n). - R. J. Mathar, Jan 03 2018
approved
editing
proposed
approved
editing
proposed
CoefficientList[Series[(1 - (1 - 4 x)^(1/2)) / (1 - 4 x)^(3/2), {x, 0, 33}], x] (* Vincenzo Librandi, Mar 25 2015 *)
(MAGMA) [0] cat [n le 1 select 2 else 4*Self(n-1)+ Binomial(2*n, n): n in [1..30]]; // Vincenzo Librandi, Mar 25 2015
proposed
editing
editing
proposed
The number of returns to the origin in all possible one -dimensional walks of length 2n.
a(n)/4^n is the expected number of times a gambler will return to his break -even point while making 2n equal wagers on the outcome of a fair coin toss. Note the surprisingly low and slow growth of this expectation.
proposed
editing