A function satisfies , and for all positive integers .
What is value of ?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Write 2 0 1 7 in binary as 1 1 1 1 1 1 0 0 0 0 1 2 . Then by the definition of f , we have f ( 2 0 1 7 ) = f ( 1 1 1 1 1 1 0 0 0 0 1 2 ) = f ( 1 1 1 1 1 1 0 0 0 0 2 ) + 1 = f ( 1 1 1 1 1 1 0 0 0 2 ) + 1 = ⋯ = f ( 1 1 1 1 1 1 2 ) + 1 = f ( 1 1 1 1 1 2 ) + 1 + 1 = ⋯ = 1 + 1 + 1 + 1 + 1 + 1 + 1 = 7 .
This doesn't merely compute the answer. It also tells us what f actually is. In short, f ( n ) = digit sum of n in binary