#ThisWeeksFiddler, 20240202

This week the question is: How Many Times Can You Add Up the Digits?

For any positive, base-10 integer N, define f(N) as the number of times you have to add up its digits until you get a one-digit number. For example, f(23) = 1 because 2+3 = 5, a one-digit number. Meanwhile, f(888) = 2, since 8+8+8 = 24, a two-digit number, and then adding up those digits gives you 2+4 = 6, a one-digit number.

Find the smallest whole number N such that f(N) = 4.

And let’s look at the extra credit puzzle too:

For how many whole numbers N between 1 and 10,000 (inclusive, not that it matters) does f(N) = 3?

And here’s my suggested solution, highlight to reveal:

Skriv en kommentar