cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-1 of 1 results.

A362318 Number of odd semiprimes between 2^(n-1) and 2^n.

Original entry on oeis.org

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
Offset: 0

Views

Author

Sidney Cadot, Apr 16 2023

Keywords

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.

Crossrefs

Programs

  • Mathematica
    a[n_] := Length@Select[Range[2^(n - 1) + 1, 2^n - 1, 2], Total[Last /@ FactorInteger[#]] ==2 &]Table[a[n],{n,0,25}]

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

Extensions

More terms from Chai Wah Wu, Apr 24 2023 (using data in A120033 and A036378)
Showing 1-1 of 1 results.