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.

A192851 Integers n such that 6n, 36n, and 216n fall between pairs of twin primes, that is, 6n-1, 6n+1, 36n-1, 36n+1, 216n-1, and 216n+1 are prime.

This page as a plain text file.
%I A192851 #23 Aug 21 2020 12:13:54
%S A192851 2,12,23,45,325,703,2705,3598,4218,7338,10698,13562,16478,16665,20195,
%T A192851 25195,29678,32312,36228,51882,79628,83522,84513,84525,89453,100028,
%U A192851 106710,107712,108868,114527,119142,145590,147758,151557,167155,173960,190547,192588
%N A192851 Integers n such that 6n, 36n, and 216n fall between pairs of twin primes, that is, 6n-1, 6n+1, 36n-1, 36n+1, 216n-1, and 216n+1 are prime.
%C A192851 Infinite under Dickson's conjecture. - _Charles R Greathouse IV_, Jul 24 2011
%H A192851 Charles R Greathouse IV, <a href="/A192851/b192851.txt">Table of n, a(n) for n = 1..10000</a>
%e A192851 12 is in the list because 12*6=72, 12*36=432, 12*216=2592 are all between a pair of twin primes (71,73 and 431,433 and 2591,2593).
%t A192851 Select[Range[1000000], PrimeQ[6 # - 1] && PrimeQ[6 # + 1] && PrimeQ[36 # - 1] && PrimeQ[36 # + 1] && PrimeQ[216 # - 1] && PrimeQ[216 # + 1] &] (* _T. D. Noe_, Jul 26 2011 *)
%t A192851 Select[Range[193000],AllTrue[{6#-1,6#+1,36#-1,36#+1,216#-1,216#+1}, PrimeQ]&] (* The program uses the AllTrue function from Mathematica version 10 *) (* _Harvey P. Dale_, Aug 21 2020 *)
%o A192851 (PARI) is(n)=isprime(6*n-1) && isprime(6*n+1) && isprime(36*n-1) && isprime(36*n+1) && isprime(216*n-1) && isprime(216*n+1) \\ _Charles R Greathouse IV_, Sep 15 2015
%Y A192851 Subsequence of A191626 and hence A002822.
%Y A192851 Cf. A014574.
%K A192851 nonn
%O A192851 1,1
%A A192851 _Andrea Raffetti_, Jul 11 2011