Seq sugg'd: Moving (integer) average of primes: Do terms exist for any n?

franktaw at franktaw at
Wed Jul 23 06:20:27 CEST 2008

What you do in a case like this is define ", 0 if none exists".  Then 
you include a comment asking if there are any 0's.

This sequence is, IMO, definitely worth submitting.

Franklin T. Adams-Watters

-----Original Message-----
From: zak seidov <zakseidov at>

Dear SF gurus,
do terms exist for any n?
what about fini/full tags in such a case?
thanks, zak

%I A000001
%S A000001 
%N A000001 a(n) = least k > 1 such that average (p(n)+...+p(n+k))/(k+1) 
is an
integer, p(n)=nth prime.

More information about the SeqFan mailing list