1.
Let N\mathbb N be the set of natural numbers and two functions ff and gg be defined as f,g:NNf,g: \mathbb N \to \mathbb N such that
f(n)={n+12,if n is oddn2,if n is evenf(n) = \begin{cases} \frac{n+1}{2}, & \text{if } n \text{ is odd}\\ \frac{n}{2}, & \text{if } n \text{ is even} \end{cases}
and g(n)=n(1)ng(n) = n - (-1)^n. Then fgf\circ g is:
Sets, Relations and Functions - Medium - Question