Skip to content / Đến nội dung
ThichHocToan.com

MathNet 2023-part-03 — 191 problems (EN–VI) Question 101

Math Olympiad Vault · MathNet 2023-part-03 — 191 problems (EN–VI)

Question 101

Let us call a positive integer a *good number* if the digit $2$ appears more frequently than the digit $3$, and a *bad number* if the digit $3$ appears more frequently than the digit $2$. For example, $2023$ is a good number because the digit $2$ appears twice and the digit $3$ once, and $123$ is neither a good number nor a bad number because the digit $2$ appears once and the digit $3$ once.
Find the difference between the number of good numbers less than or equal to $2023$ and the number of bad numbers less than or equal to $2023$.