MathDB
Large integer without repeating abab

Source: 2021 IMOC qualification problems, C2

December 30, 2021
IMOCcombinatorics

Problem Statement

Find the largest positive integer nn such that no two adjacent digits are the same, and for any two distinct digits 0a,b90 \leq a,b \leq 9 , you can't get the string abababab just by removing digits from nn.