1.

Suppose the seed of any positive integer n is defined as follows: Seed (n) = n, if n < 10 = seed(s(n)), otherwise, Where s(n) indicated the sum of digits of n. For example, seed(7)=7, seed(248) = 2+4+8 = seed(14) = seed(1+4) = seed(5) = 5, etc. How many positive integers n, such that n< 500, will have seed(n)=5?

Answer»

Suppose the seed of any positive integer n is defined as follows:

Seed (n) = n, if n < 10

= seed(s(n)), otherwise,

Where s(n) indicated the sum of digits of n. For example, seed(7)=7, seed(248) = 2+4+8 = seed(14) = seed(1+4) = seed(5) = 5, etc.

How many positive integers n, such that n< 500, will have seed(n)=5?




Discussion

No Comment Found

Related InterviewSolutions