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 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).
%I #22 Aug 25 2019 19:43:17
%S 19,31,43,67,89,101,113,131,229,241,277,359,383,491,523,619,631,643,
%T 701,761,1321,1381,1621,2221,2861
%N Primes that are not the sum of 3 pentagonal numbers.
%C 5 is the only prime pentagonal number; every greater pentagonal number A000326(n) = n(3n-1)/2 is either divisible by n/2 or (3n-1)/2. Every number is the sum of 5 pentagonal numbers, hence every prime is the sum of 5 pentagonal numbers. There are an infinite number of primes which are the sum of two pentagonal numbers, the subset of primes which are the sum of two pentagonal numbers in exactly two different ways begins {211, 853, 1259, 1427, 1571, 2297, 2351}.
%C The sum may include the pentagonal number 0. Hence this sequence does not have any primes that are the sum of two positive pentagonal numbers. The sequence is probably finite. There are no other primes < 59900. - _T. D. Noe_, Apr 19 2006
%C The next term, if it exists, is greater than 160000000. - _Jack W Grahl_, Jul 10 2018
%C a(26) > 10^11, if it exists. - _Giovanni Resta_, Jul 13 2018
%H J. W. Grahl, <a href="https://github.com/jwg4/oeis_misc/blob/master/c/a003679.c">C code which was used to check for elements of this sequence up to 160,000,000.</a>
%H R. K. Guy, <a href="http://www.jstor.org/stable/2324367">Every number is expressible as the sum of how many polygonal numbers?</a>, Amer. Math. Monthly 101 (1994), 169-172.
%F A000040 INTERSECT A003679.
%t nn=201; pen=Table[n(3n-1)/2, {n,0,nn-1}]; ps=Prime[Range[PrimePi[pen[[ -1]]]]]; Do[n=pen[[i]]+pen[[j]]+pen[[k]]; If[n<=pen[[ -1]]&&PrimeQ[n], ps=DeleteCases[ps, _?(#==n&)]], {i,nn}, {j,i,nn}, {k,j,nn}]; ps (* _T. D. Noe_, Apr 19 2006 *)
%Y Cf. A000040, A000326, A003679, A064826.
%K more,hard,nonn
%O 1,1
%A _Jonathan Vos Post_, Apr 17 2006
%E More terms from _T. D. Noe_, Apr 19 2006
%E Mathematica program corrected by _Robert Price_, Aug 25 2019