OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = Sum_{k=1..n} prime(k)*prime(n+k).
EXAMPLE
a(3) = 2*7 + 3*11 + 5*13 = 112.
MAPLE
P:= <seq(ithprime(i), i=1..500)>:
[seq(P[1..t]^%T . P[t+1..2*t], t=1..250)];
MATHEMATICA
Table[Prime[Range[n]].Prime[Range[n+1, 2n]], {n, 50}] (* Harvey P. Dale, Mar 30 2024 *)
PROG
(PARI) a(n) = sum(k=1, n, prime(k)*prime(n+k)); \\ Michel Marcus, Sep 02 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert Israel, Sep 01 2020
STATUS
approved