A simple function that merely adds up the digits of a number in base 3 connects to factorials and probability theory. Using a ...
Whenever you see the phrase "at least one..." in a probability problem on the Common Test, take it as an opportunity.