This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A339022 #17 Dec 22 2024 13:09:27 %S A339022 1,2,2,4,5,6,7,9,10,12,13,15,16,18,19,21,23,24,26,27,29,30,32,34,36, %T A339022 38,39,41,42,44,46,48,50,52,54,56,57,59,61,63,65,67,69,71,72,74,77,79, %U A339022 81,83,85,86,88,90,92,95,96,98,100,102,104,106,108 %N A339022 a(n) is the floor of the average distance among first n primes. %C A339022 Is the limit of a(n)/n finite? %F A339022 a(n) = floor((2/(n*(n-1)))*Sum_{j=2..n} Sum_{i=1..j-1} (prime(j) - prime(i))). %t A339022 nmax=64; %t A339022 Table[Total[Flatten[Table[Table[Prime[k] - Prime[j], {j, 1, k - 1}], {k, 2, n}]]]/(n*(n - 1)/2), {n, 2, nmax}]//Floor %Y A339022 Cf. A338869 (Shortest most frequent distance among first n primes). %K A339022 nonn %O A339022 2,2 %A A339022 _Andres Cicuttin_, Nov 19 2020