OFFSET
1,1
COMMENTS
All a(n) >= 2, with a(n) = 2 if and only if n is in A005836. - Robert Israel, Feb 01 2019
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
MAPLE
f:= proc(n) local x, k;
x:= binomial(2*n, n);
for k from 2 do if not (x/k!)::integer then return k-1 fi od
end proc:
map(f, [$1..105]); # Robert Israel, Feb 01 2019
MATHEMATICA
a[n_] := Module[{k = 2}, While[Divisible[Binomial[2n, n], k!], k++]; k-1];
Table[a[n], {n, 1, 105}] (* Jean-François Alcover, Oct 01 2024 *)
PROG
(PARI) a(n)=if(n<0, 0, k=1; while(binomial(2*n, n)%(k!) == 0, k++); k-1)
CROSSREFS
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Oct 28 2002
STATUS
approved