Integer-valued function

  • Thread starter ypatia
  • Start date
  • Tags
    Function
  • #1
6
0
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
How about f(n)=in?
 
  • #3
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.
 
  • #4
How about

for n>0
f(2n-1)=2n
f(2n)=-2n+1
f(-2n+1)=-2n
f(-2n)=2n-1

f(0)=0
 
  • #5
Nice, chronon. Nice.
 
  • #6
Indeed - it's nice to visualize f as a piecewise permutation

(0)(-2,-1,2,1)(-4,-3,4,3)...(-2n,-2n+1,2n,2n-1)...

and recall that (abcd)^2=(ac)(bd)
 

Suggested for: Integer-valued function

Replies
1
Views
206
Replies
5
Views
2K
Replies
3
Views
1K
Replies
4
Views
558
Replies
2
Views
804
Replies
4
Views
888
Back
Top