OFFSET
1,1
LINKS
Klaus Brockhaus, Table of n, a(n) for n=1..1000
EXAMPLE
5*(fifth prime) + 6*(sixth prime) = 5*11 + 6*13 = 55 + 78 = 133.
MATHEMATICA
Total/@Partition[Times@@@Table[{n, Prime[n]}, {n, 50}], 2, 1] (* Harvey P. Dale, Aug 13 2019 *)
PROG
(Magma) [ n*NthPrime(n)+(n+1)*NthPrime(n+1): n in [1..43] ];
(PARI) a(n) = n*prime(n) + (n+1)*prime(n+1); \\ Michel Marcus, Feb 05 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
Klaus Brockhaus, Dec 10 2008
STATUS
approved