OFFSET
1,3
COMMENTS
a(n) <= n; for primes p: a(p-1) = 1.
The values of n for which a(n)=n yield the sequence A067317. - Emeric Deutsch, Aug 27 2007
If a(n) > n/2 then a(n) = n. a(n) = floor(n/2) for n = 2, 5, 37, 47, 124. Are there others? - Robert Israel, Mar 09 2020
LINKS
Robert Israel, Table of n, a(n) for n = 1..4000
MAPLE
a:=proc(n) local k: for k while isprime(1+binomial(n, k))=false do end do: k end proc: seq(a(n), n=1..70); # Emeric Deutsch, Aug 27 2007
MATHEMATICA
a[n_] := For[k = 1, True, k++, If[PrimeQ[Binomial[n, k] + 1], Return[k]]];
Array[a, 70] (* Jean-François Alcover, Feb 13 2018 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, May 16 2005
EXTENSIONS
Corrected and extended by Emeric Deutsch, Aug 27 2007
STATUS
approved