MathDB
Problems
Contests
National and Regional Contests
Taiwan Contests
IMOC Shortlist
2021-IMOC qualification
C2
C2
Part of
2021-IMOC qualification
Problems
(1)
Large integer without repeating abab
Source: 2021 IMOC qualification problems, C2
12/30/2021
Find the largest positive integer
n
n
n
such that no two adjacent digits are the same, and for any two distinct digits
0
≤
a
,
b
≤
9
0 \leq a,b \leq 9
0
≤
a
,
b
≤
9
, you can't get the string
a
b
a
b
abab
abab
just by removing digits from
n
n
n
.
IMOC
combinatorics