Let and be defined as
Then the number of possible functions such that is:
The function is defined as if is odd, and if is even. So: , , , , , , , , , .
The range of is . We need , i.e., for all .
This means , , , , and . These five values of are completely determined.
However, the values , , , , and are not constrained by the condition (since 1, 3, 5, 7, 9 are not in the range of ). Each of these can be any element of .
Therefore the number of possible functions is .
Tagged One-one, onto functions and counting functions. Machine-assigned, so read it as a strong shortlist rather than a verdict.