login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 60th year, we have over 367,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

Other ways to Give
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A117048 Prime numbers that are expressible as the sum of two positive triangular numbers. 7
2, 7, 11, 13, 29, 31, 37, 43, 61, 67, 73, 79, 83, 97, 101, 127, 137, 139, 151, 157, 163, 181, 191, 193, 199, 211, 227, 241, 263, 277, 281, 307, 331, 353, 367, 373, 379, 389, 409, 421, 433, 443, 461, 463, 487, 499, 541, 571, 577, 587, 601, 619, 631, 659, 661 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
If the triangular number 0 is allowed, only one additional prime occurs: 3. In that case, the sequence becomes A117112.
A subsequence of A051533. - Wolfdieter Lang, Jan 11 2017
LINKS
EXAMPLE
2 = 1 + 1
7 = 1 + 6
11 = 1 + 10
13 = 10 + 3, etc.
MATHEMATICA
tri = Table[n (n + 1)/2, {n, 40}]; Select[Union[Flatten[Outer[Plus, tri, tri]]], # <= tri[[-1]]+1 && PrimeQ[#] &] (* T. D. Noe, Apr 07 2011 *)
PROG
(PARI) is(n)=for(k=sqrtint(4*n+1)\2+1, (sqrtint(8*n+1)-1)\2, if(ispolygonal(n-k*(k+1)/2, 3), return(n>3 && isprime(n)))); n==2 \\ Charles R Greathouse IV, Nov 07 2014
CROSSREFS
Sequence in context: A157975 A339862 A045370 * A040128 A209630 A235266
KEYWORD
easy,nonn
AUTHOR
Andrew S. Plewe, Apr 15 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 December 8 13:46 EST 2023. Contains 367679 sequences. (Running on oeis4.)