Letdenote the sum of the digits of the positive integer
in decimal notation. What may
be if
and
?

Hello, james_bond!
Is this a trick question?
Letdenote the sum of the digits of the positive integer
in decimal notation.
What maybe if
and
?
Anyone familiar with "Casting out 9's" know this fact . . .
. . Ifis the digital-sum function: .
(Hmm, that's not quite accurate, but it'll do.)
If, then: .
. . . . too easy
I know. a is the 100-digit number consisting of all 1’s, so 124a is the 102-digit number whose first two digits are 13 and last two 64, with 98 7’s in between. Hence f(3a) = 300 after all.