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!)
A129545 Triangular numbers T such that T+1 is a prime. 6
1, 6, 10, 28, 36, 66, 78, 136, 190, 210, 276, 378, 630, 820, 946, 990, 1128, 1326, 1596, 1830, 2016, 2080, 2346, 2556, 2850, 2926, 3570, 3916, 4560, 4656, 4950, 5050, 5778, 6216, 6328, 8646, 8778, 9180, 9870, 11026, 12720, 13366, 14028, 14196, 14878 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
The only triangular numbers T such that T-1 is a (positive) prime are 3 and 6.
LINKS
FORMULA
a(n) = A000217(A067186(n)). - R. J. Mathar, Dec 10 2007
a(n) = A055469(n) - 1. - Joerg Arndt, Jun 19 2021
MATHEMATICA
Select[Accumulate[Range[200]], PrimeQ[#+1]&] (* Harvey P. Dale, Nov 08 2011 *)
PROG
(Python)
from sympy import isprime
def T(n): return n*(n+1)//2
def ok(T): return isprime(T+1)
print(list(filter(ok, (T(n) for n in range(175))))) # Michael S. Branicky, Jun 18 2021
CROSSREFS
Sequence in context: A225845 A014494 A318894 * A097578 A300098 A240972
KEYWORD
nonn,easy
AUTHOR
Zak Seidov, May 30 2007
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 19 18:05 EDT 2024. Contains 371798 sequences. (Running on oeis4.)