Positive integer to rational number that is not injective

104 Views Asked by At

What is an example of a function from positive integers to rational numbers that is not injective? If this was all integers it would be easy. The only thing I can think of is if you use ceilings but I don't think that is what it's looking for. Thanks for any help.

1

There are 1 best solutions below

2
On

What about if you take $f(n)=1$ for each $n\in\mathbb Z$?