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.

A135368 a(n) = (nextprime(12*n) - previousprime(12*n))/2.

This page as a plain text file.
%I A135368 #7 Oct 12 2016 02:49:55
%S A135368 1,3,3,3,1,1,3,4,1,7,3,5,3,3,1,1,6,6,1,1,3,3,3,5,7,1,7,3,1,4,3,3,4,4,
%T A135368 1,1,3,4,6,4,4,3,6,9,9,5,3,3,3,1,3,6,5,3,1,6,4,5,4,4,3,4,3,4,7,5,6,5,
%U A135368 1,7,7,7,7,10,10,4,5,4,3,7,3,4,3,6,1,1,5,5,3,9,1,3,4,3,11,1,4,5,3,4,6,3,3,6
%N A135368 a(n) = (nextprime(12*n) - previousprime(12*n))/2.
%C A135368 a(n)=1 if 12n -/+ 1 are twin primes. Corresponding n's are in A124519: 1,5,6,9,15,16,19,20,26,29,35,36,50,...
%H A135368 G. C. Greubel, <a href="/A135368/b135368.txt">Table of n, a(n) for n = 1..1000</a>
%t A135368 Table[ ( NextPrime[12*n, 1] - NextPrime[12*n, -1] )/2, {n, 1, 25}] (* _G. C. Greubel_, Oct 11 2016 *)
%o A135368 (PARI) a(n) = (nextprime(12*n) - precprime(12*n))/2; \\ _Michel Marcus_, Oct 12 2016
%Y A135368 Cf. A124519, A135023.
%K A135368 nonn
%O A135368 1,2
%A A135368 _Zak Seidov_, Feb 17 2008