A005098 Numbers k such that 4k + 1 is prime.
1, 3, 4, 7, 9, 10, 13, 15, 18, 22, 24, 25, 27, 28, 34, 37, 39, 43, 45, 48, 49, 57, 58, 60, 64, 67, 69, 70, 73, 78, 79, 84, 87, 88, 93, 97, 99, 100, 102, 105, 108, 112, 114, 115, 127, 130, 135, 139, 142, 144, 148, 150, 153, 154, 160, 163, 165, 168, 169, 175, 177, 183
Offset: 1
Links
- Zak Seidov, Table of n, a(n) for n = 1..10000 (first 1000 terms from T. D. Noe)
- Eric Weisstein's World of Mathematics, Wilson's Theorem.
Programs
-
Haskell
a005098 = (`div` 4) . (subtract 1) . a002144 -- Reinhard Zumkeller, Mar 17 2013
-
Magma
[k: k in [0..10000] | IsPrime(4*k+1)] // Vincenzo Librandi, Nov 18 2010
-
Maple
a := []; for k from 1 to 500 do if isprime(4*k+1) then a := [op(a), k]; fi; od: A005098 := k->a[k];
-
Mathematica
Select[Range[200], PrimeQ[4# + 1] &] (* Harvey P. Dale, Apr 20 2011 *)
-
PARI
is(k)=isprime(4*k+1) \\ Charles R Greathouse IV, Nov 20 2012
Formula
a(n) = (A002144(n)-1)/4.
Extensions
More terms from Ray Chandler, Jun 26 2004
Edited by Charles R Greathouse IV, Mar 17 2010
Comments