Let $A = \{1, 2, 3, 4\}$ and $B = \{a, b, c, d, e\}$. what is the number of functions from $A$ to $B$ are either one-to-one or map the element $1$ to $c$? My answer is $166$, but I'm not really sure of my approach .
To calculate $A \cup B = 5! + 4^3 - 4$!