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!)
A056563 Number of primes which are the difference between two triangular numbers, where the larger is the n-th triangular number. 2
0, 0, 1, 2, 1, 1, 1, 2, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 2, 0, 1, 1, 1, 1, 0, 0, 1, 0, 1, 1, 2, 0, 0, 1, 0, 1, 2, 0, 0, 1, 1, 1, 1, 0, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 0, 1, 1, 0, 0, 2, 0, 0, 1, 1, 1, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 0, 1, 2, 0, 1, 1, 1, 0, 1, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,4
LINKS
EXAMPLE
a(7)=2 because 7th triangular number is 28 and both 28-21=7 and 28-15=13 are primes.
MATHEMATICA
Join[{0}, Table[With[{tr=Accumulate[Range[n]]}, Count[tr[[-1]]-Most[tr], _?PrimeQ]], {n, 120}]] (* Harvey P. Dale, Mar 31 2023 *)
CROSSREFS
Sequence in context: A292378 A320835 A276183 * A088231 A327954 A336386
KEYWORD
nonn
AUTHOR
Henry Bottomley, Jun 27 2000
EXTENSIONS
Formula deleted by Harvey P. Dale, Mar 31 2023
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 July 17 08:16 EDT 2024. Contains 374360 sequences. (Running on oeis4.)