Can You Solve This Onto, But Not One-to-One Function Challenge?

  • Context: Undergrad 
  • Thread starter Thread starter Jrb599
  • Start date Start date
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
7 replies · 28K views
Jrb599
Messages
24
Reaction score
0
[SOLVED] Onto, but not one-to-one

I need a function

f: N -> N such that f is onto, but not one-to-one, and I can't think of one to save my life, any suggestions?
 
Physics news on Phys.org
what does {x} stand for?
 
what about

f(1)=1
f(2)=1
f(n) = n-1 for n>2
 
k, well your original post helped me, so thank you!