A267825 Index of largest primorial factor of binomial(2n,n).
0, 1, 2, 1, 1, 2, 2, 2, 3, 1, 1, 2, 1, 1, 3, 3, 3, 3, 5, 5, 6, 3, 3, 3, 3, 2, 2, 1, 1, 5, 1, 1, 2, 4, 4, 2, 1, 1, 4, 1, 1, 5, 5, 5, 4, 4, 4, 4, 4, 3, 2, 2, 2, 5, 5, 2, 2, 2, 3, 3, 2, 2, 2, 3, 3, 3, 3, 5, 5, 5, 3, 3, 3, 3, 6, 6, 6, 7, 5, 5, 5, 1, 1, 5, 1, 1, 6, 6, 6, 6, 1, 1, 6, 1, 1, 7, 7, 7, 3, 3, 3
Offset: 0
Keywords
Examples
Binomial(16,8) = 12870 is divisible by primorial(3) = 2*3*5 = 30, but not by prime(4) = 7, so a(8) = 3.
Links
- Wikipedia, Lucas' theorem
Programs
-
Mathematica
PrimorialFactor[n_] := (k = 0; While[Mod[n, Prime[k + 1]] == 0, k++]; k); Table[PrimorialFactor[Binomial[2 n, n]], {n, 0, 100}]
-
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
Comments