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!)
A049882 a(n) is the number of distinct sums of 4 different primes chosen from the first n primes. 3

%I #30 Apr 05 2020 09:34:31

%S 1,5,13,23,32,43,57,69,84,98,110,125,139,155,170,187,202,214,230,246,

%T 262,281,299,316,330,344,357,379,401,420,437,459,477,495,515,534,553,

%U 571,586,608,627,642,657,677,701,725,748,767,783,801,821,841,859,876,900,917,935,949,970,997

%N a(n) is the number of distinct sums of 4 different primes chosen from the first n primes.

%e From _Petros Hadjicostas_, Nov 19 2019: (Start)

%e The first 4 primes are 2, 3, 5, and 7 and they form only one sum, so a(4) = 1.

%e The first 5 primes are 2, 3, 5, 7, and 11, and they form 5 distinct sums each with four different terms (17, 21, 23, 25, 26), so a(2) = 5.

%e The first 6 primes are 2, 3, 5, 7, 11, and 13, and they form 13 distinct sums each with four different terms (17, 21, 23, 25, 26, 27, 28, 29, 31, 32, 33, 34, 36), so a(6) = 13. (End)

%p f := proc(n) local v, i, j, k, m; v := {};

%p if 4 <= n then

%p for i from 1 to n - 3 do

%p for j from i + 1 to n - 2 do

%p for k from j + 1 to n - 1 do

%p for m from k + 1 to n do

%p v := v union {ithprime(i) + ithprime(j) + ithprime(k) + ithprime(m)};

%p end do; end do; end do; end do;

%p end if; nops(v); end proc;

%p seq(f(n), n=4..40); # _Petros Hadjicostas_, Nov 19 2019

%Y Cf. A000040, A049880, A049881, A253250.

%K nonn

%O 4,2

%A _Clark Kimberling_

%E Name edited by and more terms from _Petros Hadjicostas_, Nov 19 2019

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 May 13 03:04 EDT 2024. Contains 372497 sequences. (Running on oeis4.)