login

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”).

A162867
a(n) is the sum of all possible pairs of the first n primes.
0
4, 15, 40, 85, 168, 287, 464, 693, 1000, 1419, 1920, 2561, 3332, 4215, 5248, 6477, 7920, 9519, 11360, 13419, 15664, 18193, 20976, 24075, 27560, 31347, 35392, 39759, 44400, 49383, 55040, 61083, 67592, 74445, 81936, 89799, 98192, 107133, 116560
OFFSET
1,1
COMMENTS
Previous name was "Sums of pairs of primes."
FORMULA
a(n) = (n+1)*A007504(n). - Charlie Neder, Feb 04 2019
EXAMPLE
List the pairs of the first 3 primes:
2,2
2,3
2,5
3,3
3,5
5,5
a(3)=40 because it is the sum of these pairs of primes.
MATHEMATICA
Table[Total[Flatten[Union[Sort/@Tuples[Prime[Range[n]], 2]]]], {n, 40}] (* Harvey P. Dale, Jan 17 2023 *)
CROSSREFS
Cf. A007504 (sum of the first n primes).
Sequence in context: A291555 A336995 A053698 * A336971 A059140 A031164
KEYWORD
nonn
AUTHOR
Mats Granvik, Jul 15 2009
EXTENSIONS
Name changed by Jon E. Schoenfield, Oct 13 2019
STATUS
approved