login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A119320
Difference between 10^n and the largest n-digit semiprime.
2
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,2
LINKS
FORMULA
a(n) = 10^n - A098450(n).
PROG
(PARI) a(n) = my(k=10^n-1); while (bigomega(k) != 2, k--); 10^n - k; \\ Michel Marcus, Sep 18 2021
CROSSREFS
Cf. A098450.
Sequence in context: A303579 A306966 A286016 * A363252 A070962 A093008
KEYWORD
base,nonn
AUTHOR
Zak Seidov, May 14 2006
EXTENSIONS
More terms from Amiram Eldar, Sep 18 2021
STATUS
approved