login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A056562 Number of primes which are the difference between two triangular numbers, where the smaller is the n-th triangular number. 2
1, 1, 2, 0, 2, 1, 1, 1, 1, 0, 2, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 2, 0, 0, 1, 0, 0, 2, 1, 1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 2, 0, 1, 1, 0, 0, 1, 1, 0, 1, 1, 0, 2, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 1, 1, 1, 0, 0, 1, 1, 0, 1, 0, 2, 0, 0, 1, 0, 0, 2, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,3

LINKS

Table of n, a(n) for n=0..104.

FORMULA

a(n)=2 if both n+1 is prime and 2n+3 is prime, =1 if one of n+1 and 2n+3 is prime, =0 if neither are primes.

EXAMPLE

a(4)=2 because 4th triangular number is 10 and both 15-10=5 and 21-10=11 are primes.

CROSSREFS

Cf. A000217, A001227, A056563, A056564.

Sequence in context: A112553 A026610 A094451 * A135220 A068320 A111330

Adjacent sequences:  A056559 A056560 A056561 * A056563 A056564 A056565

KEYWORD

nonn

AUTHOR

Henry Bottomley, Jun 27 2000

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified May 18 21:01 EDT 2013. Contains 225428 sequences.