MathDB
Substrings of integer are multiples of 9

Source: BAMO 2023/2

March 3, 2023
BAMOnumber theorycombinatorics

Problem Statement

Given a positive integer NN (written in base 1010), define its integer substrings to be integers that are equal to strings of one or more consecutive digits from NN, including NN itself. For example, the integer substrings of 32083208 are 33, 22, 00, 88, 3232, 2020, 320320, 208208, 32083208. (The substring 0808 is omitted from this list because it is the same integer as the substring 88, which is already listed.)
What is the greatest integer NN such that no integer substring of NN is a multiple of 99? (Note: 00 is a multiple of 99.)