OFFSET
1,2
COMMENTS
This sequence also describes the minimum number of (n+1)-player games, where each player has an equal chance of winning, that must be played for a given player to have at least a 50% chance of winning at least once. E.g., a(3) = 3 because in a 4-player random game, a given player will have a greater than 50% chance of winning at least once if 3 games are played. - Bryan Jacobs (bryanjj(AT)gmail.com), Apr 28 2006
Also, a(n) denotes a median m of the geometric random variable on the positive integers with mean value n+1. The median is obtained by solving 1-(n/n+1)^m >= 1/2 for least integer m. - Dennis P. Walsh, Aug 13 2012
The limit n -> inf. a(n)/n = log 2. - Robert G. Wilson v, May 13 2014
LINKS
Jon Eivind Vatne, The sequence of middle divisors is unbounded, Journal of Number Theory, Volume 172, March 2017, Pages 413-415. See n(i) p. 414.
FORMULA
a(n) = n*log(2) + O(1). - Charles R Greathouse IV, Sep 02 2015
EXAMPLE
a(3) = 3 because (4/3)^2 < 2 and (4/3)^3 > 2.
MATHEMATICA
f[n_] := Block[{k = 1}, While[((n + 1)/n)^k < 2, k++]; k]; Array[f, 75]
(* to view the limit *) Array[ f/# &, 1000] (* Robert G. Wilson v, May 13 2014 *)
PROG
(PARI) a(n)=ceil(log(2)/log(1+1/n)) \\ Charles R Greathouse IV, Sep 02 2015
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Robert G. Wilson v, May 26 2004
EXTENSIONS
Edited by Jon E. Schoenfield, Apr 26 2014
STATUS
approved