[go: up one dir, main page]

login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
Search: a067317 -id:a067317
Displaying 1-2 of 2 results found. page 1
     Sort: relevance | references | number | modified | created      Format: long | short | data
A067316 a(n) is the number of values of j, 0 <= j <= n, such that 1 + binomial(n,j) is prime. +10
2
1, 2, 3, 2, 5, 4, 4, 2, 5, 6, 6, 6, 6, 4, 5, 2, 6, 8, 8, 6, 6, 4, 4, 2, 11, 4, 4, 8, 8, 8, 4, 2, 6, 4, 8, 14, 8, 4, 5, 6, 12, 10, 4, 6, 9, 8, 8, 4, 6, 8, 6, 10, 6, 6, 12, 6, 8, 4, 12, 2, 6, 8, 4, 2, 8, 18, 8, 2, 6, 14, 10, 16, 10, 6, 4, 10, 13, 8, 12, 4, 8, 2, 8, 14, 2, 6, 4, 10, 10, 16, 10, 10, 9 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
LINKS
EXAMPLE
For n = 8, the primes are 2, 29, 71, 29, 2, so a(n) = 5.
a(n) = 6 for n = 9, 10, 11, 12. Also, a(n) = 10 for n = 149, ..., 154.
MATHEMATICA
a[n_] := Count[Table[PrimeQ[Binomial[n, w]+1], {w, 0, n}], True]
PROG
(PARI) a(n) = sum(j=0, n, isprime(1 + binomial(n, j))); \\ Michel Marcus, Oct 30 2018
(PARI) a(n) = 2 * sum(k=0, (n-1)\2, isprime(binomial(n, k) + 1)) + if(!(n%2), isprime(binomial(n, n/2) + 1)); \\ Amiram Eldar, Jul 18 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Jan 15 2002
STATUS
approved
A106790 Smallest k>0 such that binomial(n,k) + 1 is prime. +10
1
1, 1, 3, 1, 2, 1, 7, 2, 2, 1, 4, 1, 2, 5, 15, 1, 2, 1, 4, 2, 2, 1, 23, 2, 6, 4, 4, 1, 7, 1, 31, 10, 6, 10, 4, 1, 18, 15, 9, 1, 2, 1, 17, 2, 2, 1, 23, 2, 4, 20, 6, 1, 6, 8, 10, 6, 2, 1, 59, 1, 2, 25, 63, 2, 2, 1, 67, 8, 2, 1 (list; graph; refs; listen; history; text; internal format)
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
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
page 1

Search completed in 0.007 seconds

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 29 09:16 EDT 2024. Contains 375511 sequences. (Running on oeis4.)