Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Integer-valued function

  1. May 4, 2009 #1
    Is there any function (if any) f: Z -> Z such that
    f(f(n))=-n , for every n belongs to Z(integers) ??

    I think that there is not any function like the one described above but how can we prove it. Any ideas??
    Thanks in Advance
  2. jcsd
  3. May 4, 2009 #2


    User Avatar
    Science Advisor

    How about f(n)=in?
  4. May 4, 2009 #3


    User Avatar
    Science Advisor
    Homework Helper

    Not integer-valued. (I assume if the OP meant Gaussian integers that would have been mentioned, since that's the obvious solution.)

    I've been thinking about this for a few hours now and I can't see any way to do it, but I can't prove that it's impossible.
  5. May 5, 2009 #4
    How about

    for n>0

  6. May 5, 2009 #5
    Nice, chronon. Nice.
  7. May 5, 2009 #6

    matt grime

    User Avatar
    Science Advisor
    Homework Helper

    Indeed - it's nice to visualize f as a piecewise permutation


    and recall that (abcd)^2=(ac)(bd)
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook