The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A125602 Centered triangular numbers that are prime. 8
19, 31, 109, 199, 409, 571, 631, 829, 1489, 1999, 2341, 2971, 3529, 4621, 4789, 7039, 7669, 8779, 9721, 10459, 10711, 13681, 14851, 16069, 16381, 17659, 20011, 20359, 23251, 25939, 27541, 29191, 29611, 31321, 34429, 36739, 40099, 40591, 42589 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Prime terms in A005448, or primes of the form 3n(n-1)/2 + 1.
Primes that are the sum of 3 consecutive triangular numbers. - Vicente Izquierdo Gomez, Nov 03 2015
LINKS
MAPLE
select(isprime, [seq(3*n*(n-1)/2+1, n=1..1000)]); # Robert Israel, Nov 03 2015
MATHEMATICA
lst={}; Do[If[PrimeQ[p=3n(n-1)/2+1], (*Print[p]; *)AppendTo[lst, p]], {n, 10^3}]; lst (* Vladimir Joseph Stephan Orlovsky, Aug 21 2008 *)
Select[Total/@Partition[Accumulate[Range[200]], 3, 1], PrimeQ] (* Harvey P. Dale, Dec 29 2020 *)
PROG
(Magma) [a: n in [0..200] | IsPrime(a) where a is (3*n^2 - 3*n + 2) div 2]; // Vincenzo Librandi, Mar 22 2013
(PARI) is(n)=n%6==1 && ispolygonal((n-1)/3, 3) && isprime(n) \\ Charles R Greathouse IV, Nov 03 2015
CROSSREFS
Sequence in context: A243450 A237418 A240126 * A139847 A087764 A146691
KEYWORD
nonn,easy
AUTHOR
Zak Seidov, Nov 27 2006
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 June 14 20:28 EDT 2024. Contains 373401 sequences. (Running on oeis4.)