True or false: The number of functions from $[5]$ to $[5]$ such that $f(f(i)) \neq i $ for $ i=1, \ldots 5$ is $44.$
(Here $[5] = \{1,2,3,4,5\}.)$
The number of derangements on $5$ elements is $44$ but the functions in question are clearly not just derangements, since the existence of $x, y$ such that $f(x)=y$ and $f(y)=x$ is also prohibited. Further, there is no restriction on $f$ to be bijective.
My attempt: for each function $f,$ define $g= f^2$ and count functions $g: [5] \to [5]$ such that $g(i) \neq i$ by inclusion-exclusion as follows: $5^5 -\binom{5}{1}(4^4) + \binom{5}{2}(3^3)- \ldots $ and so on. The problem though is that the set of $g's$ aren't in bijective correspondence with the set of $f's$ and I'm not convinced that the expression I have above is right because the resultant answer is too large.
Any help would be appreciated.