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.

A340902 Distance from the largest prime with less than 10^n decimal digits to 10^(10^n-1).

Original entry on oeis.org

63, 621, 6101, 11333, 59511, 172473
Offset: 1

Views

Author

Jeppe Stig Nielsen, Jan 26 2021

Keywords

Comments

The prime number related to a(n) is the prime immediately preceding the prime related to A096548(n).
a(5) and a(6) appear to have been first found by Patrick De Geest.

Examples

			a(4) = 11333 because 10^9999 - 11333 is the largest prime not exceeding 10^9999.
a(5) = 59511 because 10^99999 - 59511 is the largest prime not exceeding 10^99999.
		

Crossrefs

Formula

a(n) = 10^(10^n-1) - precprime(10^(10^n-1)) = A064722(10^A002283(n)).