OFFSET
0,5
COMMENTS
Odd numbers with two prime factors are used as the modulus in the RSA algorithm. This sequence shows the growth of the number of 'candidate' RSA moduli for keys up to a given number of bits.
FORMULA
EXAMPLE
For n=5, there are four integers less than 32 (i.e., 2^5) that are the product of two odd primes: {3*3, 3*5, 3*7, 5*5} = {9, 15, 21, 25}; hence, a(5)=4.
MATHEMATICA
a[n_]:=Length@Select[Range[1, 2^n - 1, 2], Total[Last /@ FactorInteger[#]] == 2 &]
Table[a[n], {n, 0, 24}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Sidney Cadot, Apr 15 2023
EXTENSIONS
More terms from Jinyuan Wang, Apr 16 2023
STATUS
approved