login
This site is supported by donations to The OEIS Foundation.

 

Logo

Annual Appeal: Today, Nov 11 2014, is the 4th anniversary of the launch of the new OEIS web site. 70,000 sequences have been added in these four years, all edited by volunteers. Please make a donation (tax deductible in the US) to help keep the OEIS running.

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A024892 Numbers n such that 3*n+1 is prime. 9

%I

%S 2,4,6,10,12,14,20,22,24,26,32,34,36,42,46,50,52,54,60,64,66,70,74,76,

%T 80,90,92,94,102,104,110,112,116,122,124,126,132,136,140,144,146,152,

%U 154,162,166,174,180,182,190,192,200,202,204,206,210,214,220,224,230,236,242,244,246

%N Numbers n such that 3*n+1 is prime.

%C All the primes (with the exception of 3), can be expressed as 3*n+1 or 3*n-1. - _C├ęsar Aguilera_, Apr 13 2013

%H Vincenzo Librandi, <a href="/A024892/b024892.txt">Table of n, a(n) for n = 1..1000</a>

%F a(n) = 2*A024899(n) = A034936(n)+1

%t lst={}; Do[p=3*n+1; If[PrimeQ[p], AppendTo[lst, n]], {n, 0, 10^3}]; lst (* _Vladimir Joseph Stephan Orlovsky_, Sep 10 2008 *)

%t Select[Range[250], PrimeQ[3# + 1] &] (* _Vincenzo Librandi_, Sep 25 2012 *)

%o (MAGMA) [n: n in [1..1000] | IsPrime(3*n+1)]; // _Vincenzo Librandi_, Nov 20 2010

%Y Cf. A002476 (associated primes), A091178 (gives prime index).

%K nonn,easy

%O 1,1

%A _Clark Kimberling_

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

Content is available under The OEIS End-User License Agreement .

Last modified December 20 18:44 EST 2014. Contains 252288 sequences.