# How to get smallest positive integer N?

Logic Level 3

Define $$S(n)$$ as the sum of the digits of $$n$$. Let $$N$$ denote the smallest positive integer such that $$N + S(N) + S(S(N)) = 99$$. What is $$S(N)$$?

×