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.

A058044 Difference between the smallest prime following and largest prime preceding n-th primorial number.

This page as a plain text file.
%I A058044 #12 Jun 08 2014 11:08:12
%S A058044 2,2,12,2,18,48,46,80,102,74,120,72,136,174,132,168,198,190,230,176,
%T A058044 234,286,102,354,364,336,278,486,442,386,408,1032,520,308,364,612,478,
%U A058044 432,382,422,606,526,1344,606,1230,834,624,756,550
%N A058044 Difference between the smallest prime following and largest prime preceding n-th primorial number.
%H A058044 Alois P. Heinz, <a href="/A058044/b058044.txt">Table of n, a(n) for n = 2..100</a>
%F A058044 a(n) = A038710(n)-A007014(n).
%p A058044 [seq(nextprime(product(ithprime(k), k=1..w))-prevprime (product(ithprime(k), k=1..w)), w=2..50)];
%t A058044 Rest[NextPrime[#]-NextPrime[#,-1]&/@Rest[FoldList[Times,1,Prime[Range[ 50]]]]] (* _Harvey P. Dale_, Mar 24 2013 *)
%Y A058044 Cf. A002110, A007014, A038710.
%K A058044 nonn
%O A058044 2,1
%A A058044 _Labos Elemer_, Nov 17 2000
%E A058044 Offset corrected by _Alois P. Heinz_, Jun 08 2014