A119320 Difference between 10^n and the largest n-digit semiprime.
1, 5, 2, 2, 2, 3, 2, 3, 9, 3, 3, 3, 11, 3, 2, 6, 11, 7, 9, 17, 3, 3, 11, 3, 3, 17, 5, 5, 9, 33, 11, 17, 17, 3, 11, 41, 39, 11, 29, 7, 11, 6, 21, 11, 17, 17, 9, 17, 11, 7, 11, 83, 49, 3, 2, 11, 3, 38, 23, 7, 11, 14, 9, 33, 3, 11, 11, 11, 31, 66, 9, 47, 21, 17, 29
Offset: 1
Links
- Amiram Eldar, Table of n, a(n) for n = 1..100
Crossrefs
Cf. A098450.
Programs
-
PARI
a(n) = my(k=10^n-1); while (bigomega(k) != 2, k--); 10^n - k; \\ Michel Marcus, Sep 18 2021
Formula
a(n) = 10^n - A098450(n).
Extensions
More terms from Amiram Eldar, Sep 18 2021