A138104 2^(n-th semiprime) - 1.
15, 63, 511, 1023, 16383, 32767, 2097151, 4194303, 33554431, 67108863, 8589934591, 17179869183, 34359738367, 274877906943, 549755813887, 70368744177663, 562949953421311, 2251799813685247, 36028797018963967
Offset: 1
Examples
a(1) = (2^4) - 1 = 15 because 4 is the 1st semiprime. Note that 15 = 3*5 is itself semiprime. a(2) = (2^6) - 1 = 63 because 6 is the 2nd semiprime. Note that 63 = (3^2)*7 is not itself semiprime. a(3) = (2^9) - 1 = 511 because 9 is the 3rd semiprime; and 511 = 7 * 73 is itself semiprime. a(17) = (2^17)-1 = 562949953421311 = 127 * 4432676798593, itself semiprime.
Programs
-
Mathematica
2^#-1&/@Select[Range[100],PrimeOmega[#]==2&] (* Harvey P. Dale, Jun 26 2011 *)
Formula
a(n) = (2^A001358(n))-1.
Comments