OFFSET
2,2
FORMULA
a(n) = numerator((2/(n*(n-1))*Sum_{j=2..n} Sum_{i=1..j-1} (prime(j) - prime(i))).
MATHEMATICA
nmax=64;
Table[Total[Flatten[Table[Table[Prime[k] - Prime[j], {j, 1, k - 1}], {k, 2, n}]]]/(n*(n - 1)/2), {n, 2, nmax}]//Numerator
PROG
(PARI) lista(nn) = {my(vp = primes(nn)); vector(nn-1, k, k++; numerator((2/(k*(k-1))*sum(j=2, k, sum(i=1, j-1, vp[j] - vp[i]))))); } \\ Michel Marcus, Nov 21 2020
CROSSREFS
KEYWORD
nonn,frac
AUTHOR
Andres Cicuttin, Nov 20 2020
STATUS
approved