edited by
21,758 views
92 votes
92 votes
A function $f: \Bbb{N^+} \rightarrow \Bbb{N^+}$ , defined on the set of positive integers $\Bbb{N^+}$, satisfies the following properties:

                    $f(n)=f(n/2)$   if $n$ is even

                    $f(n)=f(n+5)$  if $n$ is odd

Let $R=\{ i \mid \exists{j} : f(j)=i \}$ be the set of distinct values that $f$ takes. The maximum possible size of $R$ is ___________.
edited by

9 Answers

0 votes
0 votes

 F(1) = F(6) = F(3) = F(8) = F(4) = F(2) = F(1).

arrange in ascending order

1,2,3,4,6,8   

Take n=5

5,10,5,10,5,10

Take n=5

7,12,6,3   F(6) matches in both so same both belongs to same value.

Take n=9

9,14,7     F(7) matches in both so same both belongs to same value.

We can see we have different value for multiples of 5 and other natural numbers.

Answer:

Related questions

85 votes
85 votes
18 answers
10
Sandeep Singh asked Feb 12, 2016
35,612 views
Let $G$ be a complete undirected graph on $4$ vertices, having $6$ edges with weights being $1, 2, 3, 4, 5,$ and $6$. The maximum possible weight that a minimum weight s...