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.Com
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)   (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

RELATED QUESTIONS

For positive integer values of N, let N be defined as: N = 2 + 4 + 6 + ... + N, if N (answered by Edwin McCravy)
if the number represented by n-1 is an odd integer which expression represents the next... (answered by mykasha)
Let (Fn)=(1,1,2,3,5,8,13,21,34,55,...) be the fibonacci sequence defined by F1=F2=1,... (answered by venugopalramana)
If n-1 is an odd integer, what is the next largest even... (answered by unlockmath)
f(n)={n/2x3+1 if n is even , if n is odd (answered by ikleyn)
1. Let X(k) denote the N-point DFT of the N-point sequence x(n) a) If x(n)... (answered by Fombitz)
If n is an integer, which of the following represents an odd number? (A) 2n+3 (B) 2n (answered by Alan3354)
If the sum of n consecutive integers is 0, which of the following must be true? 1) n... (answered by scott8148)
If m and n are odd integers, which of the following must also be an odd integer?... (answered by Alan3354)