OFFSET
0,3
COMMENTS
For n > 0, binomial(2n,n) is even, so a(n) >= 1.
Is a(n) unbounded? (The largest value for n <= 100000 is a(45416) = 43.)
From Robert Israel, Jan 28 2016: (Start)
Equivalently, p is the least prime such that the base-p representation of n has all digits < p/2.
a(primorial(k)-1) >= k. In particular the sequence is unbounded. (End)
LINKS
Wikipedia, Lucas' theorem
EXAMPLE
Binomial(16,8) = 12870 is divisible by primorial(3) = 2*3*5 = 30, but not by prime(4) = 7, so a(8) = 3.
MATHEMATICA
PrimorialFactor[n_] := (k = 0; While[Mod[n, Prime[k + 1]] == 0, k++]; k);
Table[PrimorialFactor[Binomial[2 n, n]], {n, 0, 100}]
PROG
(PARI) pf(n) = {my(k = 0); while (n % prime(k+1) == 0, k++); k; }
a(n) = pf(binomial(2*n, n)); \\ adapted from Mathematica; Michel Marcus, Jan 29 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
Jonathan Sondow, Jan 27 2016
STATUS
approved