edited by
22,152 views
95 votes
95 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

24.6k
views
9 answers
65 votes
Sandeep Singh asked Feb 12, 2016
24,598 views
Consider the weighted undirected graph with $4$ vertices, where the weight of edge $\{i,j\}$ is given by the entry $W_{ij}$ in the matrix $W$. W=$\begin{bmatrix} 0&2 &8 &...
36.1k
views
18 answers
85 votes
Sandeep Singh asked Feb 12, 2016
36,132 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...
44.2k
views
21 answers
100 votes
Sandeep Singh asked Feb 12, 2016
44,216 views
For a host machine that uses the token bucket algorithm for congestion control, the token bucket has a capacity of $1$ $\text{megabyte}$ and the maximum output rate is $2...
20.1k
views
5 answers
45 votes
Sandeep Singh asked Feb 12, 2016
20,149 views
Cylinder a disk queue with requests for $I/O$ to blocks on cylinders $47, 38, 121, 191, 87, 11, 92, 10.$ The C-LOOK scheduling algorithm is used. The head is initially at...