Function Composition Value Calculation
Let
S={1,2,3,4,5,6,7,8,9,10} . Define
f:S→S as
f(n)={| 2n | , if n=1, | 2, | 3, | 4, | 5 |
| 2n−11 | , if n=6, | 7, | 8, | 9, | 10, |
Let
g:S→S be a function such that
fog(n)={| n+1 | , if n is odd |
| n−1 | , if n is even |
Then
g(10)g(1)+g(2)+g(3)+g(4)+g(5)) is equal to