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.

A013633 nextprime(n) - prevprime(n).

This page as a plain text file.
%I A013633 #13 Jul 08 2025 02:49:38
%S A013633 3,2,4,2,6,4,4,4,6,2,6,4,4,4,6,2,6,4,4,4,10,6,6,6,6,6,8,2,8,6,6,6,6,6,
%T A013633 10,4,4,4,6,2,6,4,4,4,10,6,6,6,6,6,12,6,6,6,6,6,8,2,8,6,6,6,6,6,10,4,
%U A013633 4,4,6,2,8,6,6,6,6,6,10,4,4
%N A013633 nextprime(n) - prevprime(n).
%H A013633 T. D. Noe, <a href="/A013633/b013633.txt">Table of n, a(n) for n=3..2000</a>
%F A013633 a(n) = A151800(n) - A151799(n) = A007918(n+1) - A007917(n-1). - _M. F. Hasler_, Sep 09 2015
%e A013633 a(3) = nextprime(3) - prevprime(3) = 5 - 2 = 3: This shows that here the variants 2 (A151800 and A151799) of the nextprime and precprime functions are used, rather than the variants A007918 and A007917. - _M. F. Hasler_, Sep 09 2015
%p A013633 [ seq(nextprime(i)-prevprime(i),i=3..100) ];
%o A013633 (PARI) A013633(n)=nextprime(n+1)-precprime(n-1) \\ _M. F. Hasler_, Sep 09 2015
%Y A013633 Cf. A151800, A007918; A151799, A007917.
%K A013633 nonn
%O A013633 3,1
%A A013633 _N. J. A. Sloane_