SOLUTION: Let f be the function which associates to an integer n the number 1 if n is even, and -1 if n is odd Find the following: f(2), f(3), f(145), f(-5), f(0). Can you find a formula fo

Algebra ->  Functions -> SOLUTION: Let f be the function which associates to an integer n the number 1 if n is even, and -1 if n is odd Find the following: f(2), f(3), f(145), f(-5), f(0). Can you find a formula fo      Log On


   



Question 1029982: Let f be the function which associates to an integer n the number 1 if n is even, and -1 if n is odd
Find the following: f(2), f(3), f(145), f(-5), f(0). Can you find a formula for f?
Thank you for all your time!

Answer by solver91311(24713) About Me  (Show Source):
You can put this solution on YOUR website!


2 and 0 are even. The rest are odd.



or



where returns the remainder of the integer quotient of divided by .

John

My calculator said it, I believe it, that settles it