cp's OEIS Frontend

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.

A363477 Numbers that are integer averages of first k odd primes for some k.

This page as a plain text file.
%I A363477 #15 Jun 16 2023 13:46:02
%S A363477 3,4,5,133,169,1117,2406,3564,6141,7429,8220,8475,14193,33543,121049,
%T A363477 211785,877650,5948070,8494543,27820975,41428418,130490020,139053727,
%U A363477 200325407,291720414,893706168,977748014,2103851425,2173904606,5996888467,15790305181
%N A363477 Numbers that are integer averages of first k odd primes for some k.
%F A363477 a(n) = Sum_{i=1..A097961(n)} prime(i)/n.
%e A363477 5 is a term because 5 is the average of the first 3 odd primes, 3, 5 and 7.
%e A363477 133 is a term because 133 is the average of the first 60 odd primes, 3, 5, 7, 11, ..., 281 and 283.
%o A363477 (Python)
%o A363477 from sympy import sieve
%o A363477 L = sieve.primerange(3, 4*10**10); s, k = 0, 0
%o A363477 for p in L:
%o A363477     s += p;  k += 1
%o A363477     if s%k == 0: print(s//k, end = ", ")
%Y A363477 Cf. A050248, A071148, A097961.
%K A363477 nonn
%O A363477 1,1
%A A363477 _Ya-Ping Lu_, Jun 07 2023