login
A239323
Semiprimes of the form (2^n + 1)*(2^n - n + 1).
0
4, 6, 15, 221, 4294049777
OFFSET
1,1
COMMENTS
Generated by n: 0, 1, 2, 4, 16, ...
The positions of a(n) in A001358: 1, 2, 6, 75, ...
EXAMPLE
4 is in this sequence because (2^0 + 1)*(2^0 - 0 + 1) = 2*2 = 4 is semiprime for n = 0,
6 is in this sequence because (2^1 + 1)*(2^1 - 1 + 1) = 3*2 = 6 is semiprime for n = 1,
15 is in this sequence because (2^2 + 1)*(2^2 - 2 + 1) = 5*3 = 15 is semiprime for n = 2.
MATHEMATICA
Select[Table[(2^n+1)(2^n-n+1), {n, 0, 20}], PrimeOmega[#]==2&] (* Harvey P. Dale, May 11 2024 *)
PROG
(Magma) k := 1;
for n in [1..10000] do
if IsPrime(k*2^n + 1) and IsPrime(k*2^n - n + 1) then
(k*2^n + 1)*(k*2^n - n + 1);
end if;
end for;
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved