Problem

Source:

Tags: combinatorics



The following list shows every number for which more than half of its digits are digits $2$, in increasing order: $$2, 22, 122, 202, 212, 220, 221, 222, 223, 224, \dots$$If the $n$th term in the list is $2022$, what is $n$?