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!)
A124867 Numbers that are the sum of 3 distinct primes. 11

%I #33 Feb 06 2024 18:53:22

%S 10,12,14,15,16,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,

%T 36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,

%U 59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81

%N Numbers that are the sum of 3 distinct primes.

%C (Conjecture) Every number n > 17 is the sum of 3 distinct primes. Natural numbers that are not the sum of 3 distinct primes are listed in A124868.

%C A125688(a(n)) > 0. - _Reinhard Zumkeller_, Nov 30 2006

%H Eric W. Weisstein, <a href="http://mathworld.wolfram.com/GoldbachConjecture.html">Goldbach conjecture</a>

%H Wikipedia, <a href="http://en.wikipedia.org/wiki/Goldbach&#39;s_conjecture">Goldbach's conjecture</a>

%H Wikipedia, <a href="http://en.wikipedia.org/wiki/Goldbach&#39;s_weak_conjecture">Goldbach's weak conjecture</a>

%e The first three primes are 2, 3, 5, and 2 + 3 + 5 = 10, so 10 is in the sequence. No smaller integer is in the sequence.

%e 5 + 5 + 5 = 15, but note also 3 + 5 + 7 = 15, so 15 is in the sequence.

%e Although 13 = 3 + 3 + 7 = 3 + 5 + 5, both of those repeat primes, so 13 is not in the sequence.

%t threePrimes[n_] := Module[{p, q, r}, {p, q, r} /. Solve[n == p + q + r && p < q < r, {p, q, r}, Primes]];

%t Reap[For[n = 10, n <= 100, n++, sol = threePrimes[n]; If[MatchQ[sol, {{_, _, _}..}], Print[n, " ", sol[[1]]]; Sow[n]]]][[2, 1]] (* _Jean-François Alcover_, Apr 26 2020 *)

%t has3DistPrimesPart[n_] := Length[Select[IntegerPartitions[n, {3}], Length[Union[#]] == 3 && Union[PrimeQ[#]] == {True} &]] > 0; Select[Range[100], has3DistPrimesPart] (* _Alonso del Arte_, Apr 26 2020 *)

%t Union[Total/@Subsets[Prime[Range[20]],{3}]] (* _Harvey P. Dale_, Feb 06 2024 *)

%o (PARI) a(n)=if(n>5,n+12,[10, 12, 14, 15, 16][n]) \\ _Charles R Greathouse IV_, Aug 26 2011

%Y Cf. A124868 (not the sum of 3 distinct primes), A068307, A125688.

%K nonn,easy

%O 1,1

%A _Alexander Adamchuk_, Nov 11 2006

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 14:10 EDT 2024. Contains 371792 sequences. (Running on oeis4.)