# Number of partial functions between two sets

The number of partial functions $A \rightarrow B$ is $(1+|B|)^{|A|}.$ Now either this is a well-known formula, or I just made a mistake in the proof I just wrote. Which is it?

-
Looks right to me at first glance. –  Alex Becker Feb 1 '13 at 22:31
The formula is fine. And if your argument is to add an extra element $*$ to $B$ so that $f(a)=*$ means that $a$ is not really in the domain of $f$, then your proof is fine, too. –  Brian M. Scott Feb 1 '13 at 22:35
Oh, it's that easy..... :( –  user18921 Feb 1 '13 at 22:35
Nah, it's complicated, uses the binomial theorem, non-standard notation etc. I much prefer your approach! –  user18921 Feb 1 '13 at 22:38
For what it's worth, the symbol usually chosen (at least in computer science) for the extra element is "$\bot$". –  Henning Makholm Feb 1 '13 at 22:42
show 2 more comments