The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A362318 Number of odd semiprimes between 2^(n-1) and 2^n. 1
0, 0, 0, 0, 2, 2, 7, 13, 27, 52, 104, 210, 398, 807, 1542, 3046, 5936, 11565, 22584, 44012, 86062, 167786, 327936, 640630, 1252327, 2448518, 4791344, 9378159, 18364095, 35979682, 70515477, 138275503, 271246674, 532304906, 1045047118, 2052464984, 4032502528 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,5
COMMENTS
This is the number of odd integers with precisely n bits that are the product of two (possibly identical) prime factors.
Odd numbers with two prime factors are used as the modulus in the RSA algorithm. This sequence gives the number of "candidate" RSA moduli having precisely n bits. Note that many of these candidates would not be suitable for cryptographic applications because they are easily factored.
LINKS
FORMULA
a(n) = A362042(n) - A362042(n-1) for n>=1.
a(n) = A120033(n-1) - A036378(n-2) for n > 1. - Chai Wah Wu, Apr 24 2023
MATHEMATICA
a[n_] := Length@Select[Range[2^(n - 1) + 1, 2^n - 1, 2], Total[Last /@ FactorInteger[#]] ==2 &]Table[a[n], {n, 0, 25}]
CROSSREFS
Sequence in context: A366583 A366584 A019144 * A049953 A364313 A156435
KEYWORD
nonn
AUTHOR
Sidney Cadot, Apr 16 2023
EXTENSIONS
More terms from Chai Wah Wu, Apr 24 2023 (using data in A120033 and A036378)
STATUS
approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 21 22:16 EDT 2024. Contains 372741 sequences. (Running on oeis4.)