cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A119320 Difference between 10^n and the largest n-digit semiprime.

Original entry on oeis.org

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

Views

Author

Zak Seidov, May 14 2006

Keywords

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