the following is a problem in the book.(adsbygoogle = window.adsbygoogle || []).push({});

[tex]

f(x)=\left\{\begin{array}{cc}\frac{1}{2}(x+1),&\mbox{ if x is odd}

\\\frac{1}{2}x, & \mbox{ if x is even}\end{array}\right

[/tex]

the solutions that's given is This function is onto because, for any [tex]y\epsilonZ, g(2y)=y.[/tex] It is not one-to-one because g(1) = g(2).

I understand where the numbers come from stating why it's not one-to-one, but i'm a little confused about the onto part, in that they got the 2

**Physics Forums | Science Articles, Homework Help, Discussion**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Homework Help: Question about one-to-one and onto with functions

**Physics Forums | Science Articles, Homework Help, Discussion**