A111737 Distance between k*(n-th prime) and next prime, k=5 case.
1, 2, 4, 2, 4, 2, 4, 2, 12, 4, 2, 6, 6, 8, 4, 4, 12, 2, 2, 4, 2, 2, 4, 4, 2, 4, 6, 6, 2, 4, 6, 4, 6, 6, 6, 2, 2, 6, 4, 12, 12, 2, 12, 2, 6, 2, 6, 2, 16, 6, 6, 6, 8, 4, 4, 4, 16, 6, 14, 4, 8, 6, 8, 4, 2, 12, 2, 8, 6, 2, 12, 6, 12, 2, 6, 16, 4, 2, 6, 8, 4, 6, 6, 14, 8, 6, 6, 2, 4, 18, 4, 4, 2, 4, 8, 6, 4, 4, 2
Offset: 1
Keywords
Examples
a(1)=1 because prime(1)=2 and 5*2+1=11 (prime).
Programs
-
Mathematica
NextPrime[#]-#&/@(5Prime[Range[100]]) (* Harvey P. Dale, Oct 21 2011 *)
Comments