Question
Question: If\[F(n) = {( - 1)^{k - 1}} \cdot (n - 1)\], \[G(n) = n - F(n)\] then what is the value of \[\left( ...
IfF(n)=(−1)k−1⋅(n−1), G(n)=n−F(n) then what is the value of (GoG)(n), where k is odd?
1)1 2)n 3)2 4)n−1Solution
Here we are given a function G(n) and its relation with another function F(n) is also given. We have to find the function of that function. We do this by simply getting the value of G(n) using the relation given above. Then we find the value of (GoG)(n) by using the obtained value of G(n). Then we will solve further and make use of the fact that k here is odd. In this way we can reach our result.
Complete step-by-step solution:
Here we are given the function F(n) as,
F(n)=(−1)k−1⋅(n−1)
And we are also given another function G(n) as, G(n)=n−F(n). We will put the value of F(n) in the previous equation to get the value of G(n) as,
G(n)=n−((−1)k−1⋅(n−1))
We know that (GoG)(n) can be written as,
(GoG)(n)=G(G(n)), we will now put the value of G(n) obtained from above step as,
⇒(GoG)(n)=G(n−((−1)k−1⋅(n−1)))
We further solve it as,
⇒(GoG)(n)=n−(−1)k−1(n−1)−(−1)k−1((n−1)−(−1)k−1(n−1))
We know that (−1)k−1=1 as k is odd and 1 minus odd is even. So, we use this in above equation and move further ahead as,