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
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
KEYWORD
nonn
AUTHOR
Sidney Cadot, Apr 16 2023
EXTENSIONS
STATUS
approved