A194939 Table T read by rows, where T(n, k) is the sum of the largest k primes up to and including prime(n), for 1 <= k <= n.
2, 3, 5, 5, 8, 10, 7, 12, 15, 17, 11, 18, 23, 26, 28, 13, 24, 31, 36, 39, 41, 17, 30, 41, 48, 53, 56, 58, 19, 36, 49, 60, 67, 72, 75, 77, 23, 42, 59, 72, 83, 90, 95, 98, 100, 29, 52, 71, 88, 101, 112, 119, 124, 127, 129, 31, 60, 83, 102, 119, 132, 143, 150, 155, 158, 160
Offset: 1
Examples
First few rows of triangle are: 2 3, 5 5, 8, 10 7, 12, 15, 17 11, 18, 23, 26, 28 ... T(5, 2) = 18 because the sum of the fourth and fifth primes (two consecutive primes) is 7 + 11 = 18. T(5, 3) = 23 because the sum of the third, fourth and fifth primes (three consecutive primes) is 5 + 7 + 11 = 23.
Links
- Michel Marcus, Table of n, a(n) for n = 1..5050 (first 100 rows)
Crossrefs
Programs
-
Mathematica
a[n_, k_] := a[n, k] = Plus@@Prime[Range[n - k + 1, n]]; Column[Table[a[n, k], {n, 15}, {k, n}], Center]
Formula
T(n, k) = Sum_{i = n-k+1..n} prime(i), where prime(i) is the i-th prime number.
Extensions
More terms from Michel Marcus, Aug 31 2020
New name from David A. Corneth, Aug 31 2020
Comments