A212707 Semiprimes of the form 5*n^2 + 1.
6, 21, 46, 321, 501, 721, 1126, 2206, 2881, 3646, 3921, 4501, 7606, 10581, 11521, 13521, 14581, 15681, 16246, 18001, 19846, 20481, 21781, 23806, 24501, 27381, 30421, 32001, 38721, 40501, 42321, 48021, 61606, 64981, 72001, 79381, 83206, 89781, 106581, 121681
Offset: 1
Examples
a(6) = 721 = 1 + 5*(12^2) = 7 * 103.
Links
- Vincenzo Librandi, Table of n, a(n) for n = 1..1000
Programs
-
Magma
IsSemiprime:= func
; [s: n in [1..180] | IsSemiprime(s) where s is 5*n^2 + 1]; // Vincenzo Librandi, Sep 22 2012 -
Mathematica
SemiPrimeQ[n_Integer] := If[Abs[n] < 2, False, (2 == Plus @@ Transpose[FactorInteger[Abs[n]]][[2]])]; Select[Table[5*n^2 + 1, {n, 200}], SemiPrimeQ] (* T. D. Noe, May 24 2012 *) Select[Table[5*n^2 + 1, {n, 180}], PrimeOmega[#] == 2&] (* Vincenzo Librandi, Sep 22 2012 *)
Formula
Extensions
Extended by T. D. Noe, May 24 2012
Comments