1.
Let a function f:NNf: \mathbb{N} \to \mathbb{N} be defined by
f(n)={2n,n=2,4,6,8,n1,n=3,7,11,15,n+12,n=1,5,9,13,f(n) = \begin{cases} 2n, & n = 2, 4, 6, 8, \ldots \\ n-1, & n = 3, 7, 11, 15, \ldots \\ \frac{n+1}{2}, & n = 1, 5, 9, 13, \ldots \end{cases}
Then ff is: