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!)
A062301 Number of ways writing n-th prime as a sum of two primes. 8
0, 0, 1, 1, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
a(n) = 1 if and only if n is in A006512. - Robert Israel, Apr 04 2018
LINKS
MAPLE
a:= n-> `if`(isprime(ithprime(n)-2), 1, 0):
seq(a(n), n=1..105); # Alois P. Heinz, Oct 02 2020
MATHEMATICA
Table[Sum[(PrimePi[Prime[n] - i] - PrimePi[Prime[n] - i - 1]) (PrimePi[i] - PrimePi[i - 1]), {i, Floor[Prime[n]/2]}], {n, 100}] (* Wesley Ivan Hurt, Apr 04 2018 *)
PROG
(PARI) a(n) = isprime(prime(n) - 2) \\ David A. Corneth, Apr 04 2018
(GAP) P:=Filtered([1..1000], IsPrime);; a:=List(List(List(P, i -> Partitions(i, 2)), k -> Filtered(k, i -> IsPrime(i[1]) and IsPrime(i[2]))), Length); # Muniru A Asiru, Apr 05 2018
CROSSREFS
Equals A061358(A000040(n)).
Sequence in context: A284932 A117814 A257000 * A181712 A288729 A335617
KEYWORD
nonn
AUTHOR
Labos Elemer, Jul 05 2001
EXTENSIONS
Offset changed to 1 by David A. Corneth, Apr 04 2018
STATUS
approved

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 April 18 08:27 EDT 2024. Contains 371769 sequences. (Running on oeis4.)