Discrete Mathematics, Mathematics, Combinatorics.
the next digit, you would have 10 choices (0–9), but there’s exactly 1 digit to avoid (the one right before it.) So why is it always 9? It’s because for the first one you just avoid 0, and for the rest of them, you have any of the 10 digits except the one that happened right before it. Suddenly,