in Set Theory & Algebra edited by
21,499 views
91 votes
91 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 ___________.
in Set Theory & Algebra edited by
21.5k views

4 Comments

....….………..................…......…....………….…….…………..

4
4
Such Questions make the preparation journey more interesting :D
2
2

😂

2
2

9 Answers

200 votes
200 votes
Best answer
Let us assume: $f(1) = x.$

Then, $f(2) = f(2/2) = f(1) = x$
$ f(3) = f(3+5) = f(8) = f(8/2) = f(4/2) = f(2/1) = f(1) = x.$

Similarly, $f(4) = x$
$f(5) = f(5+5) = f(10/2) = f(5) = y.$

So, it will have two values. All multiples of $5$ will have value $y$ and others will have value $x.$
selected by

4 Comments

very nice explanation.
0
0
Whoever is calling it explanation they are wrong. There should be a proof that this should be true always. How you know that it will not faile for say 47 or 4775 in thoery you should have known it before hand otherwise I don’t think you can solve this one
1
1
Got it!🙂🙂
0
0
43 votes
43 votes

Answer is 2
Its Saying we have 2 domains
N+ → N+

  1. So F(1) = F(6) = F(3) = F(8) = F(4) = F(2) = F(1)....It Repeats...  Now F(7) = F(12) = F(6)...Again repeats both above are same...Since F(6) matches in both so same both belongs to same value.We are not getting F(5) above
  2. Now F(5) = F(10) = F(5)..Repeats ...We can see we have different value for multiples of 5 and other natural numbers.
edited by

4 Comments

Deepesh Kataria .where is f(9)

0
0
f(9) = f(9+5)= f(14)= f(14/2)= f(7)

now f(7) = f(7+5)= f(12)=f(12/2)= f(6)=f(3)=f(8) etc.
0
0
R is the value of “i” for which f(j) = i.
0
0
16 votes
16 votes
Answer 2..

for multiples of 5.. f(5)=f(10)...
and one for rest of the numbers in N.

4 Comments

@akriti, see defination of function again, it's in recursive form f(n) = f(n/2) ( see the recursion)  f(1) = f(6) so in order to cal. f(1) we need to agin cal f(6) now this will give f(3) now again we need to fine f(3) which will be f(8).now f(8)will give f(4) and then f(4) will give f(2) and then f(2) -> f(1) so in this way it repeats itself. see the function again, the catchy thing is the recursion part.

7
7
ooh..i missed the recursion part..thanks @mohit..:-)
2
2
Thanks for this.…

I was also stuck here

Such silly things 🤦
0
0
16 votes
16 votes

$\text{let we have f(1) = x. Then, f(2) = f(2/2) = f(1) = x}$

$\text{f(3) = f(3+5) = f(8) = f(8/2) = f(4/2) = f(2/1) = f(1) = x }$
$\text{f(5) = f(5+5) = f(10/2) = f(5) = y. }$

$\text{All  $N^+$ except multiples of 5 are mapped to x and multiples}$ 

$\text{of 5 are mapped to y so ,$\mathbf{Answer\space is\space 2}$}$

 

 

edited by

1 comment

thanx @Prince Sindhiya  ,the pictorial mapping clears everything., 

2
2
Answer:

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true