Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Inclusion–exclusion principle
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Number of onto functions=== Given finite sets ''A'' and ''B'', how many [[surjective function]]s (onto functions) are there from ''A'' to ''B''? [[Without any loss of generality]] we may take ''A'' = {1, ..., ''k''} and ''B'' = {1, ..., ''n''}, since only the cardinalities of the sets matter. By using ''S'' as the set of all [[Function (mathematics)|functions]] from ''A'' to ''B'', and defining, for each ''i'' in ''B'', the property ''P<sub>i</sub>'' as "the function misses the element ''i'' in ''B''" (''i'' is not in the [[Image (mathematics)|image]] of the function), the principle of inclusion–exclusion gives the number of onto functions between ''A'' and ''B'' as:<ref>{{harvnb|Mazur|2010|loc=pp.84-5, 90}}</ref> :<math>\sum_{j=0}^{n} \binom{n}{j} (-1)^j (n-j)^k.</math>
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)