login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A135368 a(n) = (nextprime(12*n) - previousprime(12*n))/2. 5

%I #7 Oct 12 2016 02:49:55

%S 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 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 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 a(n) = (nextprime(12*n) - previousprime(12*n))/2.

%C 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 G. C. Greubel, <a href="/A135368/b135368.txt">Table of n, a(n) for n = 1..1000</a>

%t Table[ ( NextPrime[12*n, 1] - NextPrime[12*n, -1] )/2, {n, 1, 25}] (* _G. C. Greubel_, Oct 11 2016 *)

%o (PARI) a(n) = (nextprime(12*n) - precprime(12*n))/2; \\ _Michel Marcus_, Oct 12 2016

%Y Cf. A124519, A135023.

%K nonn

%O 1,2

%A _Zak Seidov_, Feb 17 2008

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 19 08:45 EDT 2024. Contains 371782 sequences. (Running on oeis4.)