This is my first post (or second, depending on how you look at the world). For this, I decide to post the first AMM problem I solved with my friends Satvik Saha and Sohom Gupta.
Problem Statement -
We define a one-drop number as in problem 12377 from Problems and Solutions, The American Mathematical Monthly, Volume 130, 2023, Issue 3.
An integer is a one-drop number if its decimal digits satisfy
for some , with .
For example, the numbers and are one-drop numbers, while the numbers and are not.
We answer the following question: for , how many -digit one-drop numbers are there?
Solution -
There are
one-drop numbers of length .
The digits of every -digit one-drop number can be uniquely split into two zero-drop blocks and , with digits and . Here, is a zero-drop block consists of a sequence of non-decreasing decimal digits; we allow the leading digit to be .
Consider all -tuples of non-negative integers such that
Each tuple represents an -digit number obtained by concatenating two zero-drop blocks and , where and denote the number of occurrences of the digit in the respective blocks. Clearly, there are such tuples. Note that each tuple of this kind represents either a zero-drop or a one-drop number, and each -digit one-drop number is uniquely represented by such a tuple.
Discard all tuples where the block is empty, with all ; the corresponding number is zero-drop. There are as many such tuples as there are non-negative integer solutions of
that is, . This leaves tuples; call this set of tuples . Note that for any element in , the block is non-empty. Thus, it represents a proper -digit number since the leftmost digit is non-zero.
Suppose that a tuple represents a zero-drop number. Since some , the digit cannot appear in block , hence the number consists only of digits through . There are such -digit zero drop numbers, via counting the non-negative integer solutions of
Each of these numbers has been represented by precisely tuples from , because the first digits of such a number can be placed in block with the remaining digits in block for all .
For example, the -digit zero-drop number can be broken into blocks as or or or or , each of which correspond to distinct tuples from .
Thus, precisely tuples from represent zero-drop numbers. The remaining tuples uniquely represent all -digit one-drop numbers.