Confirming your payment

Skip to content

Competency-Based Questions (CBQ) · Question 63 of 80

Two shuffling rules act on the set Z of all integers: f(n)= cases n+3, & n odd n-5, & n even cases g(n)= cases n+3, &…

Question 631 markMCQHard

Two shuffling rules act on the set Z\mathbb{Z} of all integers:

f(n)={n+3,n oddn−5,n eveng(n)={n+3,n oddn−4,n evenf(n)=\begin{cases} n+3, & n \text{ odd}\\ n-5, & n \text{ even}\end{cases} \qquad\qquad g(n)=\begin{cases} n+3, & n \text{ odd}\\ n-4, & n \text{ even}\end{cases}

Both are functions from Z\mathbb{Z} to Z\mathbb{Z}. Which statement is correct?

Select your answer
  • (A) ff is a bijection with (f∘f)(n)=n−2(f\circ f)(n)=n-2 for all nn; gg is neither one-one nor onto

    Correct answer
  • (B) ff is a bijection with (f∘f)(n)=n−2(f\circ f)(n)=n-2 for all nn; gg is one-one but not onto

  • (C) ff is a bijection with (f∘f)(n)=n(f\circ f)(n)=n for all nn; gg is neither one-one nor onto

  • (D) ff is one-one but not onto, with (f∘f)(n)=n−2(f\circ f)(n)=n-2 for all nn; gg is neither one-one nor onto