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

Divide primes in groups with 2n elements and add together.
6

%I #8 Dec 08 2018 11:42:58

%S 0,5,36,156,442,954,1854,3154,4998,7514,10784,14786,19932,26148,33448,

%T 42340,52208,64322,77898,93116,110224,129978,151990,175224,201584,

%U 231272,263500,298590,335856,376616,420984,469894,521740,577304,634990

%N Divide primes in groups with 2n elements and add together.

%C First difference of A322420.

%H Ray Chandler, <a href="/A109726/b109726.txt">Table of n, a(n) for n = 0..10000</a>

%F a(n) = A007504(n*(n+1)) - A007504(n*(n-1)).

%t f[n_] := Sum[Prime[k], {k, n}]; Table[f[n*(n + 1)] - f[n*(n - 1)], {n, 0, 34}]

%Y Cf. A007504, A109722-A109725, A322420.

%K easy,nonn

%O 0,2

%A _Giovanni Teofilatto_, Aug 10 2005

%E Edited and extended by _Ray Chandler_, Aug 11 2005