<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://tcs.nju.edu.cn/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=210.28.131.13</id>
	<title>TCS Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://tcs.nju.edu.cn/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=210.28.131.13"/>
	<link rel="alternate" type="text/html" href="https://tcs.nju.edu.cn/wiki/index.php?title=Special:Contributions/210.28.131.13"/>
	<updated>2026-05-02T11:42:53Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://tcs.nju.edu.cn/wiki/index.php?title=Combinatorics_(Fall_2010)/Basic_enumeration&amp;diff=2859</id>
		<title>Combinatorics (Fall 2010)/Basic enumeration</title>
		<link rel="alternate" type="text/html" href="https://tcs.nju.edu.cn/wiki/index.php?title=Combinatorics_(Fall_2010)/Basic_enumeration&amp;diff=2859"/>
		<updated>2010-07-09T05:44:16Z</updated>

		<summary type="html">&lt;p&gt;210.28.131.13: /* Subsets */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Counting Problems ==&lt;br /&gt;
&lt;br /&gt;
== Functions and Tuples ==&lt;br /&gt;
&lt;br /&gt;
== Sets and Multisets ==&lt;br /&gt;
=== Subsets ===&lt;br /&gt;
We want to count the number of subsets of a set.&lt;br /&gt;
&lt;br /&gt;
Let&amp;lt;math&amp;gt;S=\{x_1,x_2,\ldots,x_n\}&amp;lt;/math&amp;gt; be an &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;-element set, or &#039;&#039;&#039;&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;-set&#039;&#039;&#039; for short. &lt;br /&gt;
Let &amp;lt;math&amp;gt;2^S=\{T\mid T\subset S\}&amp;lt;/math&amp;gt; denote the set of all subset of &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt;. &amp;lt;math&amp;gt;2^S&amp;lt;/math&amp;gt; is called the &#039;&#039;&#039;power set&#039;&#039;&#039; of &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We give a combinatorial proof that &amp;lt;math&amp;gt;|2^S|=2^n&amp;lt;/math&amp;gt;. We observe that every subset &amp;lt;math&amp;gt;T\in 2^S&amp;lt;/math&amp;gt; corresponds to a unique bit-vector &amp;lt;math&amp;gt;v\in\{0,1\}^S&amp;lt;/math&amp;gt;, such that each bit &amp;lt;math&amp;gt;v_i&amp;lt;/math&amp;gt; indicates whether &amp;lt;math&amp;gt;x_i\in S&amp;lt;/math&amp;gt;. Formally, define a map &amp;lt;math&amp;gt;\phi:2^S\rightarrow\{0,1\}^n&amp;lt;/math&amp;gt; by &amp;lt;math&amp;gt;\phi(T)=(v_1,v_2,\ldots,v_n)&amp;lt;/math&amp;gt;, where&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
v_i=\begin{cases}&lt;br /&gt;
1 &amp;amp; \mbox{if }x_i\in T\\&lt;br /&gt;
0 &amp;amp; \mbox{if }x_i\not\in T.&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
The map &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; is a &#039;&#039;&#039;bijection&#039;&#039;&#039; (a 1-1 correspondence). The proof that &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; is a bijection is left as an exercise.&lt;br /&gt;
&lt;br /&gt;
We know that &amp;lt;math&amp;gt;|\{0,1\}^n|=2^n\,&amp;lt;/math&amp;gt;. Why is that? We apply &#039;&#039;&#039;&amp;quot;the rule of product&amp;quot;&#039;&#039;&#039;: for any finite sets &amp;lt;math&amp;gt;P&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;Q&amp;lt;/math&amp;gt;, the cardinality of the Cartesian product &amp;lt;math&amp;gt;|P\times Q|=|P|\cdot|Q|&amp;lt;/math&amp;gt;. We can write &amp;lt;math&amp;gt;\{0,1\}^n=\{0,1\}\times\{0,1\}^{n-1}&amp;lt;/math&amp;gt;, thus &amp;lt;math&amp;gt;|\{0,1\}^n|=2|\{0,1\}^{n-1}|\,&amp;lt;/math&amp;gt;, and by induction, &amp;lt;math&amp;gt;|\{0,1\}^n|=2^n\,&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Since there is a bijection between &amp;lt;math&amp;gt;2^S&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\{0,1\}^n&amp;lt;/math&amp;gt;, it holds that &amp;lt;math&amp;gt;|2^S|=|\{0,1\}^n|=2^n\,&amp;lt;/math&amp;gt;. Here we use &#039;&#039;&#039;&amp;quot;the rule of bijection&amp;quot;&#039;&#039;&#039;: if there exists a bijection between finite sets &amp;lt;math&amp;gt;P&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;Q&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;|P|=|Q|&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
There are two elements of this proof:&lt;br /&gt;
* Find a 1-1 correspondence between subsets of an &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;-set and &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;-bit vectors.&lt;br /&gt;
: An application of this in Computer Science is that we can use bit-array as a data structure for sets: any set defined over a &#039;&#039;&#039;universe&#039;&#039;&#039; &amp;lt;math&amp;gt;U&amp;lt;/math&amp;gt; can be represented by an array of &amp;lt;math&amp;gt;|U|&amp;lt;/math&amp;gt; bits.&lt;br /&gt;
* The rule of bijection: if there is a 1-1 correspondence between two sets, then their cardinalities are the same.&lt;br /&gt;
&lt;br /&gt;
Many counting problems are solved by establishing a bijection between the set to be counted and some easy-to-count set. This kind of proofs are usually called (non-rigorously) &#039;&#039;&#039;combinatorial proofs&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
We give an alternative proof that &amp;lt;math&amp;gt;|2^S|=2^n&amp;lt;/math&amp;gt;. Define the function &amp;lt;math&amp;gt;f(n)=|2^{S_n}|&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;S_n=\{x_1,x_2,\ldots,x_n\}&amp;lt;/math&amp;gt; is an &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;-set. Our goal is to compute &amp;lt;math&amp;gt;f(n)&amp;lt;/math&amp;gt;. We prove the following recursion for &amp;lt;math&amp;gt;f(n)&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
{{Theorem|Lemma|&lt;br /&gt;
:&amp;lt;math&amp;gt;f(n)=2f(n-1)\,&amp;lt;/math&amp;gt;.&lt;br /&gt;
}}&lt;br /&gt;
{{Proof|&lt;br /&gt;
Fix an element &amp;lt;math&amp;gt;x_n&amp;lt;/math&amp;gt;, let &amp;lt;math&amp;gt;U&amp;lt;/math&amp;gt; be the set of subsets of &amp;lt;math&amp;gt;S_n&amp;lt;/math&amp;gt; that contain &amp;lt;math&amp;gt;x_n&amp;lt;/math&amp;gt; and let &amp;lt;math&amp;gt;V&amp;lt;/math&amp;gt; be the set of subsets of &amp;lt;math&amp;gt;S_n&amp;lt;/math&amp;gt; that do not contain &amp;lt;math&amp;gt;x_n&amp;lt;/math&amp;gt;. It is obvious that &amp;lt;math&amp;gt;U&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;V&amp;lt;/math&amp;gt; are disjoint (i.e. &amp;lt;math&amp;gt;U\cap V=\emptyset&amp;lt;/math&amp;gt;) and &amp;lt;math&amp;gt;2^{S_n}=U\cup V&amp;lt;/math&amp;gt;, because any subset of &amp;lt;math&amp;gt;S_n&amp;lt;/math&amp;gt; either contains &amp;lt;math&amp;gt;x_n&amp;lt;/math&amp;gt; or does not contain &amp;lt;math&amp;gt;x_n&amp;lt;/math&amp;gt; but not both.  &lt;br /&gt;
&lt;br /&gt;
We apply &#039;&#039;&#039;&amp;quot;the rule of sum&amp;quot;&#039;&#039;&#039;: for any &#039;&#039;&#039;&#039;&#039;disjoint&#039;&#039;&#039;&#039;&#039; finite sets &amp;lt;math&amp;gt;P&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;Q&amp;lt;/math&amp;gt;, the cardinality of the union &amp;lt;math&amp;gt;|P\cup Q|=|P|+|Q|&amp;lt;/math&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
Therefore, &lt;br /&gt;
:&amp;lt;math&amp;gt;f(n)=|U\cup V|=|U|+|V|&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The next observation is that &amp;lt;math&amp;gt;|U|=|V|=f(n-1)&amp;lt;/math&amp;gt;, because &amp;lt;math&amp;gt;V&amp;lt;/math&amp;gt; is exactly the &amp;lt;math&amp;gt;2^{S_{n-1}}&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;U&amp;lt;/math&amp;gt; is the set resulting from add &amp;lt;math&amp;gt;x_n&amp;lt;/math&amp;gt; to every member of &amp;lt;math&amp;gt;2^{S_{n-1}}&amp;lt;/math&amp;gt;. Therefore, &lt;br /&gt;
:&amp;lt;math&amp;gt;f(n)=|U|+|V|=f(n-1)+f(n-1)=2f(n-1)\,&amp;lt;/math&amp;gt;.&lt;br /&gt;
}}&lt;br /&gt;
The elementary case &amp;lt;math&amp;gt;f(0)=1&amp;lt;/math&amp;gt;, because &amp;lt;math&amp;gt;\emptyset&amp;lt;/math&amp;gt; has only one subset &amp;lt;math&amp;gt;\emptyset&amp;lt;/math&amp;gt;. Solving the recursion, we have that &amp;lt;math&amp;gt;|2^S|=f(n)=2^n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Subsets of fixed size ===&lt;br /&gt;
We then count the number of subsets of fixed size of a set.&lt;br /&gt;
&lt;br /&gt;
== Permutations and Partitions ==&lt;br /&gt;
&lt;br /&gt;
== The twelvfold way ==&lt;br /&gt;
&amp;lt;math&amp;gt;f:N\rightarrow M&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{|border=&amp;quot;2&amp;quot;  cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;10&amp;quot; rules=&amp;quot;all&amp;quot;  style=&amp;quot;margin:1em 1em 1em 0; border:solid 1px #AAAAAA; border-collapse:collapse;empty-cells:show;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!bgcolor=&amp;quot;#A7C1F2&amp;quot; | Elements of &amp;lt;math&amp;gt;N&amp;lt;/math&amp;gt;&lt;br /&gt;
!bgcolor=&amp;quot;#A7C1F2&amp;quot; | Elements of &amp;lt;math&amp;gt;M&amp;lt;/math&amp;gt; &lt;br /&gt;
!bgcolor=&amp;quot;#A7C1F2&amp;quot; | Any &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; &lt;br /&gt;
!bgcolor=&amp;quot;#A7C1F2&amp;quot; | Injective (1-1) &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; &lt;br /&gt;
!bgcolor=&amp;quot;#A7C1F2&amp;quot; | Surjective (on-to) &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; &lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;distinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;distinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;m^n\,&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;\left(m\right)_n&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;m!S(n, m)\,&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;indistinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;distinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;\left({m\choose n}\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;math&amp;gt;{m\choose n}&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;math&amp;gt;\left({m\choose n-m}\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;distinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;indistinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;\sum_{k=1}^m S(n,k)&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;\begin{cases}1 &amp;amp; \mbox{if }n\le m\\ 0&amp;amp; \mbox{if }n&amp;gt;m\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;S(n,m)\,&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;indistinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;indistinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;\sum_{k=1}^m p_k(n)&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;\begin{cases}1 &amp;amp; \mbox{if }n\le m\\ 0&amp;amp; \mbox{if }n&amp;gt;m\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;p_m(n)\,&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>210.28.131.13</name></author>
	</entry>
	<entry>
		<id>https://tcs.nju.edu.cn/wiki/index.php?title=Template:Proof&amp;diff=2821</id>
		<title>Template:Proof</title>
		<link rel="alternate" type="text/html" href="https://tcs.nju.edu.cn/wiki/index.php?title=Template:Proof&amp;diff=2821"/>
		<updated>2010-07-09T05:22:45Z</updated>

		<summary type="html">&lt;p&gt;210.28.131.13: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;:{|border=&amp;quot;2&amp;quot; width=&amp;quot;100%&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;3&amp;quot; rules=&amp;quot;all&amp;quot; style=&amp;quot;margin:1em 1em 1em 0; border:solid 1px #AAAAAA; border-collapse:collapse;empty-cells:show;&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Proof.&#039;&#039;&#039; &lt;br /&gt;
:{|&lt;br /&gt;
|{{{1}}}&lt;br /&gt;
|}&lt;br /&gt;
:&amp;lt;math&amp;gt;\square&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>210.28.131.13</name></author>
	</entry>
	<entry>
		<id>https://tcs.nju.edu.cn/wiki/index.php?title=Combinatorics_(Fall_2010)/Basic_enumeration&amp;diff=2858</id>
		<title>Combinatorics (Fall 2010)/Basic enumeration</title>
		<link rel="alternate" type="text/html" href="https://tcs.nju.edu.cn/wiki/index.php?title=Combinatorics_(Fall_2010)/Basic_enumeration&amp;diff=2858"/>
		<updated>2010-07-09T03:11:44Z</updated>

		<summary type="html">&lt;p&gt;210.28.131.13: /* Subsets */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Counting Problems ==&lt;br /&gt;
&lt;br /&gt;
== Functions and Tuples ==&lt;br /&gt;
&lt;br /&gt;
== Sets and Multisets ==&lt;br /&gt;
=== Subsets ===&lt;br /&gt;
We want to count the number of subsets of a set.&lt;br /&gt;
&lt;br /&gt;
Let&amp;lt;math&amp;gt;S=\{x_1,x_2,\ldots,x_n\}&amp;lt;/math&amp;gt; be an &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;-element set, or &#039;&#039;&#039;&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;-set&#039;&#039;&#039; for short. &lt;br /&gt;
Let &amp;lt;math&amp;gt;2^S=\{T\mid T\subset S\}&amp;lt;/math&amp;gt; denote the set of all subset of &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt;. &amp;lt;math&amp;gt;2^S&amp;lt;/math&amp;gt; is called the &#039;&#039;&#039;power set&#039;&#039;&#039; of &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We give a combinatorial proof that &amp;lt;math&amp;gt;|2^S|=2^n&amp;lt;/math&amp;gt;. We observe that every subset &amp;lt;math&amp;gt;T\in 2^S&amp;lt;/math&amp;gt; corresponds to a unique bit-vector &amp;lt;math&amp;gt;v\in\{0,1\}^S&amp;lt;/math&amp;gt;, such that each bit &amp;lt;math&amp;gt;v_i&amp;lt;/math&amp;gt; indicates whether &amp;lt;math&amp;gt;x_i\in S&amp;lt;/math&amp;gt;. Formally, define a map &amp;lt;math&amp;gt;\phi:2^S\rightarrow\{0,1\}^n&amp;lt;/math&amp;gt; by &amp;lt;math&amp;gt;\phi(T)=(v_1,v_2,\ldots,v_n)&amp;lt;/math&amp;gt;, where&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
v_i=\begin{cases}&lt;br /&gt;
1 &amp;amp; \mbox{if }x_i\in T\\&lt;br /&gt;
0 &amp;amp; \mbox{if }x_i\not\in T.&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
The map &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; is a &#039;&#039;&#039;bijection&#039;&#039;&#039; (a 1-1 correspondence). The proof that &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; is a bijection is left as an exercise.&lt;br /&gt;
&lt;br /&gt;
We know that &amp;lt;math&amp;gt;|\{0,1\}^n|=2^n\,&amp;lt;/math&amp;gt;. Since there is a bijection from &amp;lt;math&amp;gt;2^S&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\{0,1\}^n&amp;lt;/math&amp;gt;, it holds that &amp;lt;math&amp;gt;|2^S|=|\{0,1\}^n|=2^n\,&amp;lt;/math&amp;gt;. Here we use &#039;&#039;&#039;the rule of bijection&#039;&#039;&#039;: if there exists a bijection from &amp;lt;math&amp;gt;\mathcal{S}&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\mathcal{T}&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;|\mathcal{S}|=|\mathcal{T}|&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
There are two elements of this proof:&lt;br /&gt;
* Find a 1-1 correspondence between subsets of an &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;-set and &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;-bit vectors.&lt;br /&gt;
: An application of this in Computer Science is that we can use bit-array as a data structure for sets: any set defined over a &#039;&#039;&#039;universe&#039;&#039;&#039; &amp;lt;math&amp;gt;U&amp;lt;/math&amp;gt; can be represented by an array of &amp;lt;math&amp;gt;|U|&amp;lt;/math&amp;gt; bits.&lt;br /&gt;
* The rule of bijection: if there is a 1-1 correspondence between two sets, then their cardinalities are the same.&lt;br /&gt;
&lt;br /&gt;
Many counting problems are solved by establishing a bijection between the set to be counted and some easy-to-count set. This kind of proofs are usually called (non-rigorously) &#039;&#039;&#039;combinatorial proofs&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
We give an alternative proof that &amp;lt;math&amp;gt;|2^S|=2^n&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Subsets of fixed size ===&lt;br /&gt;
We then count the number of subsets of fixed size of a set.&lt;br /&gt;
&lt;br /&gt;
== Permutations and Partitions ==&lt;br /&gt;
&lt;br /&gt;
== The twelvfold way ==&lt;br /&gt;
&amp;lt;math&amp;gt;f:N\rightarrow M&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{|border=&amp;quot;2&amp;quot;  cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;10&amp;quot; rules=&amp;quot;all&amp;quot;  style=&amp;quot;margin:1em 1em 1em 0; border:solid 1px #AAAAAA; border-collapse:collapse;empty-cells:show;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!bgcolor=&amp;quot;#A7C1F2&amp;quot; | Elements of &amp;lt;math&amp;gt;N&amp;lt;/math&amp;gt;&lt;br /&gt;
!bgcolor=&amp;quot;#A7C1F2&amp;quot; | Elements of &amp;lt;math&amp;gt;M&amp;lt;/math&amp;gt; &lt;br /&gt;
!bgcolor=&amp;quot;#A7C1F2&amp;quot; | Any &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; &lt;br /&gt;
!bgcolor=&amp;quot;#A7C1F2&amp;quot; | Injective (1-1) &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; &lt;br /&gt;
!bgcolor=&amp;quot;#A7C1F2&amp;quot; | Surjective (on-to) &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; &lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;distinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;distinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;m^n\,&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;\left(m\right)_n&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;m!S(n, m)\,&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;indistinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;distinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;\left({m\choose n}\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;math&amp;gt;{m\choose n}&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;math&amp;gt;\left({m\choose n-m}\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;distinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;indistinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;\sum_{k=1}^m S(n,k)&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;\begin{cases}1 &amp;amp; \mbox{if }n\le m\\ 0&amp;amp; \mbox{if }n&amp;gt;m\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;S(n,m)\,&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;indistinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;indistinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;\sum_{k=1}^m p_k(n)&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;\begin{cases}1 &amp;amp; \mbox{if }n\le m\\ 0&amp;amp; \mbox{if }n&amp;gt;m\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;p_m(n)\,&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>210.28.131.13</name></author>
	</entry>
	<entry>
		<id>https://tcs.nju.edu.cn/wiki/index.php?title=Combinatorics_(Fall_2010)/Basic_enumeration&amp;diff=2857</id>
		<title>Combinatorics (Fall 2010)/Basic enumeration</title>
		<link rel="alternate" type="text/html" href="https://tcs.nju.edu.cn/wiki/index.php?title=Combinatorics_(Fall_2010)/Basic_enumeration&amp;diff=2857"/>
		<updated>2010-07-09T03:07:57Z</updated>

		<summary type="html">&lt;p&gt;210.28.131.13: /* Sets and Multisets */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Counting Problems ==&lt;br /&gt;
&lt;br /&gt;
== Functions and Tuples ==&lt;br /&gt;
&lt;br /&gt;
== Sets and Multisets ==&lt;br /&gt;
=== Subsets ===&lt;br /&gt;
We want to count the number of subsets of a set.&lt;br /&gt;
&lt;br /&gt;
Let&amp;lt;math&amp;gt;S=\{x_1,x_2,\ldots,x_n\}&amp;lt;/math&amp;gt; be an &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;-element set, or &#039;&#039;&#039;&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;-set&#039;&#039;&#039; for short. &lt;br /&gt;
Let &amp;lt;math&amp;gt;2^S=\{T\mid T\subset S\}&amp;lt;/math&amp;gt; denote the set of all subset of &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt;. &amp;lt;math&amp;gt;2^S&amp;lt;/math&amp;gt; is called the &#039;&#039;&#039;power set&#039;&#039;&#039; of &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We give a combinatorial proof that &amp;lt;math&amp;gt;|2^S|=2^n&amp;lt;/math&amp;gt;. We observe that every subset &amp;lt;math&amp;gt;T\in 2^S&amp;lt;/math&amp;gt; corresponds to a unique bit-vector &amp;lt;math&amp;gt;v\in\{0,1\}^S&amp;lt;/math&amp;gt;, such that each bit &amp;lt;math&amp;gt;v_i&amp;lt;/math&amp;gt; indicates whether &amp;lt;math&amp;gt;x_i\in S&amp;lt;/math&amp;gt;. Formally, define a map &amp;lt;math&amp;gt;\phi:2^S\rightarrow\{0,1\}^n&amp;lt;/math&amp;gt; by &amp;lt;math&amp;gt;\phi(T)=(v_1,v_2,\ldots,v_n)&amp;lt;/math&amp;gt;, where&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
v_i=\begin{cases}&lt;br /&gt;
1 &amp;amp; \mbox{if }x_i\in T\\&lt;br /&gt;
0 &amp;amp; \mbox{if }x_i\not\in T.&lt;br /&gt;
\end{cases}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
The map &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; is a &#039;&#039;&#039;bijection&#039;&#039;&#039; (a 1-1 correspondence). The proof that &amp;lt;math&amp;gt;\phi&amp;lt;/math&amp;gt; is a bijection is left as an exercise.&lt;br /&gt;
&lt;br /&gt;
We know that &amp;lt;math&amp;gt;|\{0,1\}^n|=2^n\,&amp;lt;/math&amp;gt;. Since there is a bijection from &amp;lt;math&amp;gt;2^S&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\{0,1\}^n&amp;lt;/math&amp;gt;, it holds that &amp;lt;math&amp;gt;|2^S|=|\{0,1\}^n|=2^n\,&amp;lt;/math&amp;gt;. Here we use &#039;&#039;&#039;the rule of bijection&#039;&#039;&#039;: if there exists a bijection from &amp;lt;math&amp;gt;\mathcal{S}&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\mathcal{T}&amp;lt;/math&amp;gt;, then &amp;lt;math&amp;gt;|\mathcal{S}|=|\mathcal{T}|&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
There are two elements of this proof:&lt;br /&gt;
* Find a 1-1 correspondence between subsets of an &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;-set and &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;-bit vectors.&lt;br /&gt;
: An application of this in Computer Science is that we can use bit-array as a data structure for sets: any set defined over a &#039;&#039;&#039;universe&#039;&#039;&#039; &amp;lt;math&amp;gt;U&amp;lt;/math&amp;gt; can be represented by an array of &amp;lt;math&amp;gt;|U|&amp;lt;/math&amp;gt; bits.&lt;br /&gt;
* The rule of bijection: if there is a 1-1 correspondence between two sets, then their cardinalities are the same.&lt;br /&gt;
&lt;br /&gt;
=== Subsets of fixed size ===&lt;br /&gt;
We then count the number of subsets of fixed size of a set.&lt;br /&gt;
&lt;br /&gt;
== Permutations and Partitions ==&lt;br /&gt;
&lt;br /&gt;
== The twelvfold way ==&lt;br /&gt;
&amp;lt;math&amp;gt;f:N\rightarrow M&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{|border=&amp;quot;2&amp;quot;  cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;10&amp;quot; rules=&amp;quot;all&amp;quot;  style=&amp;quot;margin:1em 1em 1em 0; border:solid 1px #AAAAAA; border-collapse:collapse;empty-cells:show;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!bgcolor=&amp;quot;#A7C1F2&amp;quot; | Elements of &amp;lt;math&amp;gt;N&amp;lt;/math&amp;gt;&lt;br /&gt;
!bgcolor=&amp;quot;#A7C1F2&amp;quot; | Elements of &amp;lt;math&amp;gt;M&amp;lt;/math&amp;gt; &lt;br /&gt;
!bgcolor=&amp;quot;#A7C1F2&amp;quot; | Any &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; &lt;br /&gt;
!bgcolor=&amp;quot;#A7C1F2&amp;quot; | Injective (1-1) &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; &lt;br /&gt;
!bgcolor=&amp;quot;#A7C1F2&amp;quot; | Surjective (on-to) &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; &lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;distinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;distinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;m^n\,&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;\left(m\right)_n&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;m!S(n, m)\,&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;indistinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;distinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;\left({m\choose n}\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;math&amp;gt;{m\choose n}&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;math&amp;gt;\left({m\choose n-m}\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;distinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;indistinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;\sum_{k=1}^m S(n,k)&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;\begin{cases}1 &amp;amp; \mbox{if }n\le m\\ 0&amp;amp; \mbox{if }n&amp;gt;m\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;S(n,m)\,&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;indistinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;indistinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;\sum_{k=1}^m p_k(n)&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;\begin{cases}1 &amp;amp; \mbox{if }n\le m\\ 0&amp;amp; \mbox{if }n&amp;gt;m\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;p_m(n)\,&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>210.28.131.13</name></author>
	</entry>
	<entry>
		<id>https://tcs.nju.edu.cn/wiki/index.php?title=Combinatorics_(Fall_2010)/Basic_enumeration&amp;diff=2856</id>
		<title>Combinatorics (Fall 2010)/Basic enumeration</title>
		<link rel="alternate" type="text/html" href="https://tcs.nju.edu.cn/wiki/index.php?title=Combinatorics_(Fall_2010)/Basic_enumeration&amp;diff=2856"/>
		<updated>2010-07-09T01:58:24Z</updated>

		<summary type="html">&lt;p&gt;210.28.131.13: /* Sets and Multisets */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Counting Problems ==&lt;br /&gt;
&lt;br /&gt;
== Functions and Tuples ==&lt;br /&gt;
&lt;br /&gt;
== Sets and Multisets ==&lt;br /&gt;
Let&amp;lt;math&amp;gt;S=\{x_1,x_2,\ldots,x_n\}&amp;lt;/math&amp;gt; be an &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;-element set, or &#039;&#039;&#039;&amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;-set&#039;&#039;&#039; for short. Let &amp;lt;math&amp;gt;2^S=\{T\mid T\subset S\}&amp;lt;/math&amp;gt; denote the set of all subset of &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt;. &amp;lt;math&amp;gt;2^S&amp;lt;/math&amp;gt; is called the &#039;&#039;&#039;power set&#039;&#039;&#039; of &amp;lt;math&amp;gt;S&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Permutations and Partitions ==&lt;br /&gt;
&lt;br /&gt;
== The twelvfold way ==&lt;br /&gt;
&amp;lt;math&amp;gt;f:N\rightarrow M&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{|border=&amp;quot;2&amp;quot;  cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;10&amp;quot; rules=&amp;quot;all&amp;quot;  style=&amp;quot;margin:1em 1em 1em 0; border:solid 1px #AAAAAA; border-collapse:collapse;empty-cells:show;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!bgcolor=&amp;quot;#A7C1F2&amp;quot; | Elements of &amp;lt;math&amp;gt;N&amp;lt;/math&amp;gt;&lt;br /&gt;
!bgcolor=&amp;quot;#A7C1F2&amp;quot; | Elements of &amp;lt;math&amp;gt;M&amp;lt;/math&amp;gt; &lt;br /&gt;
!bgcolor=&amp;quot;#A7C1F2&amp;quot; | Any &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; &lt;br /&gt;
!bgcolor=&amp;quot;#A7C1F2&amp;quot; | Injective (1-1) &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; &lt;br /&gt;
!bgcolor=&amp;quot;#A7C1F2&amp;quot; | Surjective (on-to) &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; &lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;distinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;distinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;m^n\,&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;\left(m\right)_n&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;m!S(n, m)\,&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;indistinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;distinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;\left({m\choose n}\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;math&amp;gt;{m\choose n}&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;math&amp;gt;\left({m\choose n-m}\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;distinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;indistinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;\sum_{k=1}^m S(n,k)&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;\begin{cases}1 &amp;amp; \mbox{if }n\le m\\ 0&amp;amp; \mbox{if }n&amp;gt;m\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;S(n,m)\,&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;indistinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;indistinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;\sum_{k=1}^m p_k(n)&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;\begin{cases}1 &amp;amp; \mbox{if }n\le m\\ 0&amp;amp; \mbox{if }n&amp;gt;m\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;p_m(n)\,&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>210.28.131.13</name></author>
	</entry>
	<entry>
		<id>https://tcs.nju.edu.cn/wiki/index.php?title=Combinatorics_(Fall_2010)/Basic_enumeration&amp;diff=2855</id>
		<title>Combinatorics (Fall 2010)/Basic enumeration</title>
		<link rel="alternate" type="text/html" href="https://tcs.nju.edu.cn/wiki/index.php?title=Combinatorics_(Fall_2010)/Basic_enumeration&amp;diff=2855"/>
		<updated>2010-07-09T01:31:02Z</updated>

		<summary type="html">&lt;p&gt;210.28.131.13: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Counting Problems ==&lt;br /&gt;
&lt;br /&gt;
== Functions and Tuples ==&lt;br /&gt;
&lt;br /&gt;
== Sets and Multisets ==&lt;br /&gt;
&lt;br /&gt;
== Permutations and Partitions ==&lt;br /&gt;
&lt;br /&gt;
== The twelvfold way ==&lt;br /&gt;
&amp;lt;math&amp;gt;f:N\rightarrow M&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{|border=&amp;quot;2&amp;quot;  cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;10&amp;quot; rules=&amp;quot;all&amp;quot;  style=&amp;quot;margin:1em 1em 1em 0; border:solid 1px #AAAAAA; border-collapse:collapse;empty-cells:show;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!bgcolor=&amp;quot;#A7C1F2&amp;quot; | Elements of &amp;lt;math&amp;gt;N&amp;lt;/math&amp;gt;&lt;br /&gt;
!bgcolor=&amp;quot;#A7C1F2&amp;quot; | Elements of &amp;lt;math&amp;gt;M&amp;lt;/math&amp;gt; &lt;br /&gt;
!bgcolor=&amp;quot;#A7C1F2&amp;quot; | Any &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; &lt;br /&gt;
!bgcolor=&amp;quot;#A7C1F2&amp;quot; | Injective (1-1) &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; &lt;br /&gt;
!bgcolor=&amp;quot;#A7C1F2&amp;quot; | Surjective (on-to) &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; &lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;distinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;distinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;m^n\,&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;\left(m\right)_n&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;m!S(n, m)\,&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;indistinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;distinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;\left({m\choose n}\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;math&amp;gt;{m\choose n}&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;math&amp;gt;\left({m\choose n-m}\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;distinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;indistinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;\sum_{k=1}^m S(n,k)&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;\begin{cases}1 &amp;amp; \mbox{if }n\le m\\ 0&amp;amp; \mbox{if }n&amp;gt;m\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;S(n,m)\,&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;indistinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;indistinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;\sum_{k=1}^m p_k(n)&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;\begin{cases}1 &amp;amp; \mbox{if }n\le m\\ 0&amp;amp; \mbox{if }n&amp;gt;m\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;p_m(n)\,&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>210.28.131.13</name></author>
	</entry>
	<entry>
		<id>https://tcs.nju.edu.cn/wiki/index.php?title=Combinatorics_(Fall_2010)/Basic_enumeration&amp;diff=2854</id>
		<title>Combinatorics (Fall 2010)/Basic enumeration</title>
		<link rel="alternate" type="text/html" href="https://tcs.nju.edu.cn/wiki/index.php?title=Combinatorics_(Fall_2010)/Basic_enumeration&amp;diff=2854"/>
		<updated>2010-07-09T01:30:45Z</updated>

		<summary type="html">&lt;p&gt;210.28.131.13: /* Tuples and Permutations */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Counting Problems ==&lt;br /&gt;
&lt;br /&gt;
== Functions and Tuples ==&lt;br /&gt;
&lt;br /&gt;
== Sets and Multisets ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== The twelvfold way ==&lt;br /&gt;
&amp;lt;math&amp;gt;f:N\rightarrow M&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{|border=&amp;quot;2&amp;quot;  cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;10&amp;quot; rules=&amp;quot;all&amp;quot;  style=&amp;quot;margin:1em 1em 1em 0; border:solid 1px #AAAAAA; border-collapse:collapse;empty-cells:show;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!bgcolor=&amp;quot;#A7C1F2&amp;quot; | Elements of &amp;lt;math&amp;gt;N&amp;lt;/math&amp;gt;&lt;br /&gt;
!bgcolor=&amp;quot;#A7C1F2&amp;quot; | Elements of &amp;lt;math&amp;gt;M&amp;lt;/math&amp;gt; &lt;br /&gt;
!bgcolor=&amp;quot;#A7C1F2&amp;quot; | Any &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; &lt;br /&gt;
!bgcolor=&amp;quot;#A7C1F2&amp;quot; | Injective (1-1) &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; &lt;br /&gt;
!bgcolor=&amp;quot;#A7C1F2&amp;quot; | Surjective (on-to) &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; &lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;distinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;distinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;m^n\,&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;\left(m\right)_n&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;m!S(n, m)\,&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;indistinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;distinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;\left({m\choose n}\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;math&amp;gt;{m\choose n}&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;math&amp;gt;\left({m\choose n-m}\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;distinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;indistinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;\sum_{k=1}^m S(n,k)&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;\begin{cases}1 &amp;amp; \mbox{if }n\le m\\ 0&amp;amp; \mbox{if }n&amp;gt;m\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;S(n,m)\,&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;indistinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;indistinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;\sum_{k=1}^m p_k(n)&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;\begin{cases}1 &amp;amp; \mbox{if }n\le m\\ 0&amp;amp; \mbox{if }n&amp;gt;m\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;p_m(n)\,&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>210.28.131.13</name></author>
	</entry>
	<entry>
		<id>https://tcs.nju.edu.cn/wiki/index.php?title=Combinatorics_(Fall_2010)/Basic_enumeration&amp;diff=2853</id>
		<title>Combinatorics (Fall 2010)/Basic enumeration</title>
		<link rel="alternate" type="text/html" href="https://tcs.nju.edu.cn/wiki/index.php?title=Combinatorics_(Fall_2010)/Basic_enumeration&amp;diff=2853"/>
		<updated>2010-07-09T01:26:49Z</updated>

		<summary type="html">&lt;p&gt;210.28.131.13: /* Permutations */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Counting Problems ==&lt;br /&gt;
&lt;br /&gt;
== Tuples and Permutations ==&lt;br /&gt;
&lt;br /&gt;
== Sets and Multisets ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== The twelvfold way ==&lt;br /&gt;
&amp;lt;math&amp;gt;f:N\rightarrow M&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{|border=&amp;quot;2&amp;quot;  cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;10&amp;quot; rules=&amp;quot;all&amp;quot;  style=&amp;quot;margin:1em 1em 1em 0; border:solid 1px #AAAAAA; border-collapse:collapse;empty-cells:show;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!bgcolor=&amp;quot;#A7C1F2&amp;quot; | Elements of &amp;lt;math&amp;gt;N&amp;lt;/math&amp;gt;&lt;br /&gt;
!bgcolor=&amp;quot;#A7C1F2&amp;quot; | Elements of &amp;lt;math&amp;gt;M&amp;lt;/math&amp;gt; &lt;br /&gt;
!bgcolor=&amp;quot;#A7C1F2&amp;quot; | Any &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; &lt;br /&gt;
!bgcolor=&amp;quot;#A7C1F2&amp;quot; | Injective (1-1) &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; &lt;br /&gt;
!bgcolor=&amp;quot;#A7C1F2&amp;quot; | Surjective (on-to) &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; &lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;distinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;distinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;m^n\,&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;\left(m\right)_n&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;m!S(n, m)\,&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;indistinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;distinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;\left({m\choose n}\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;math&amp;gt;{m\choose n}&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;math&amp;gt;\left({m\choose n-m}\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;distinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;indistinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;\sum_{k=1}^m S(n,k)&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;\begin{cases}1 &amp;amp; \mbox{if }n\le m\\ 0&amp;amp; \mbox{if }n&amp;gt;m\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;S(n,m)\,&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;indistinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;indistinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;\sum_{k=1}^m p_k(n)&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;\begin{cases}1 &amp;amp; \mbox{if }n\le m\\ 0&amp;amp; \mbox{if }n&amp;gt;m\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;p_m(n)\,&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>210.28.131.13</name></author>
	</entry>
	<entry>
		<id>https://tcs.nju.edu.cn/wiki/index.php?title=Combinatorics_(Fall_2010)/Basic_enumeration&amp;diff=2852</id>
		<title>Combinatorics (Fall 2010)/Basic enumeration</title>
		<link rel="alternate" type="text/html" href="https://tcs.nju.edu.cn/wiki/index.php?title=Combinatorics_(Fall_2010)/Basic_enumeration&amp;diff=2852"/>
		<updated>2010-07-09T01:26:22Z</updated>

		<summary type="html">&lt;p&gt;210.28.131.13: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Counting Problems ==&lt;br /&gt;
&lt;br /&gt;
== Permutations ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Sets and Multisets ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== The twelvfold way ==&lt;br /&gt;
&amp;lt;math&amp;gt;f:N\rightarrow M&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{|border=&amp;quot;2&amp;quot;  cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;10&amp;quot; rules=&amp;quot;all&amp;quot;  style=&amp;quot;margin:1em 1em 1em 0; border:solid 1px #AAAAAA; border-collapse:collapse;empty-cells:show;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!bgcolor=&amp;quot;#A7C1F2&amp;quot; | Elements of &amp;lt;math&amp;gt;N&amp;lt;/math&amp;gt;&lt;br /&gt;
!bgcolor=&amp;quot;#A7C1F2&amp;quot; | Elements of &amp;lt;math&amp;gt;M&amp;lt;/math&amp;gt; &lt;br /&gt;
!bgcolor=&amp;quot;#A7C1F2&amp;quot; | Any &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; &lt;br /&gt;
!bgcolor=&amp;quot;#A7C1F2&amp;quot; | Injective (1-1) &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; &lt;br /&gt;
!bgcolor=&amp;quot;#A7C1F2&amp;quot; | Surjective (on-to) &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; &lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;distinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;distinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;m^n\,&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;\left(m\right)_n&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;m!S(n, m)\,&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;indistinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;distinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;\left({m\choose n}\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;math&amp;gt;{m\choose n}&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;math&amp;gt;\left({m\choose n-m}\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;distinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;indistinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;\sum_{k=1}^m S(n,k)&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;\begin{cases}1 &amp;amp; \mbox{if }n\le m\\ 0&amp;amp; \mbox{if }n&amp;gt;m\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;S(n,m)\,&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;indistinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;indistinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;\sum_{k=1}^m p_k(n)&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;\begin{cases}1 &amp;amp; \mbox{if }n\le m\\ 0&amp;amp; \mbox{if }n&amp;gt;m\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;p_m(n)\,&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>210.28.131.13</name></author>
	</entry>
	<entry>
		<id>https://tcs.nju.edu.cn/wiki/index.php?title=Combinatorics_(Fall_2010)/Basic_enumeration&amp;diff=2851</id>
		<title>Combinatorics (Fall 2010)/Basic enumeration</title>
		<link rel="alternate" type="text/html" href="https://tcs.nju.edu.cn/wiki/index.php?title=Combinatorics_(Fall_2010)/Basic_enumeration&amp;diff=2851"/>
		<updated>2010-07-09T01:06:01Z</updated>

		<summary type="html">&lt;p&gt;210.28.131.13: /* The twelvfold way */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Counting Problems ==&lt;br /&gt;
&lt;br /&gt;
== Sets and Multisets ==&lt;br /&gt;
&lt;br /&gt;
== Permutations ==&lt;br /&gt;
&lt;br /&gt;
== The twelvfold way ==&lt;br /&gt;
&amp;lt;math&amp;gt;f:N\rightarrow M&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{|border=&amp;quot;2&amp;quot;  cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;10&amp;quot; rules=&amp;quot;all&amp;quot;  style=&amp;quot;margin:1em 1em 1em 0; border:solid 1px #AAAAAA; border-collapse:collapse;empty-cells:show;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!bgcolor=&amp;quot;#A7C1F2&amp;quot; | Elements of &amp;lt;math&amp;gt;N&amp;lt;/math&amp;gt;&lt;br /&gt;
!bgcolor=&amp;quot;#A7C1F2&amp;quot; | Elements of &amp;lt;math&amp;gt;M&amp;lt;/math&amp;gt; &lt;br /&gt;
!bgcolor=&amp;quot;#A7C1F2&amp;quot; | Any &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; &lt;br /&gt;
!bgcolor=&amp;quot;#A7C1F2&amp;quot; | Injective (1-1) &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; &lt;br /&gt;
!bgcolor=&amp;quot;#A7C1F2&amp;quot; | Surjective (on-to) &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; &lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;distinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;distinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;m^n\,&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;\left(m\right)_n&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;m!S(n, m)\,&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;indistinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;distinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;\left({m\choose n}\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;math&amp;gt;{m\choose n}&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;math&amp;gt;\left({m\choose n-m}\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;distinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;indistinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;\sum_{k=1}^m S(n,k)&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;\begin{cases}1 &amp;amp; \mbox{if }n\le m\\ 0&amp;amp; \mbox{if }n&amp;gt;m\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;S(n,m)\,&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;indistinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &#039;&#039;indistinguishable&#039;&#039;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;\sum_{k=1}^m p_k(n)&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;\begin{cases}1 &amp;amp; \mbox{if }n\le m\\ 0&amp;amp; \mbox{if }n&amp;gt;m\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;| &amp;lt;math&amp;gt;p_m(n)\,&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>210.28.131.13</name></author>
	</entry>
	<entry>
		<id>https://tcs.nju.edu.cn/wiki/index.php?title=Template:Theorem&amp;diff=2816</id>
		<title>Template:Theorem</title>
		<link rel="alternate" type="text/html" href="https://tcs.nju.edu.cn/wiki/index.php?title=Template:Theorem&amp;diff=2816"/>
		<updated>2010-06-06T12:19:13Z</updated>

		<summary type="html">&lt;p&gt;210.28.131.13: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;:{|border=&amp;quot;2&amp;quot; width=&amp;quot;100%&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;3&amp;quot; rules=&amp;quot;all&amp;quot; style=&amp;quot;margin:1em 1em 1em 0; border:solid 1px #AAAAAA; border-collapse:collapse;empty-cells:show;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|bgcolor=&amp;quot;#A7C1F2&amp;quot; |&#039;&#039;&#039;{{{1}}}&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|{{{2}}}&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>210.28.131.13</name></author>
	</entry>
	<entry>
		<id>https://tcs.nju.edu.cn/wiki/index.php?title=Template:Theorem&amp;diff=2815</id>
		<title>Template:Theorem</title>
		<link rel="alternate" type="text/html" href="https://tcs.nju.edu.cn/wiki/index.php?title=Template:Theorem&amp;diff=2815"/>
		<updated>2010-06-06T12:01:53Z</updated>

		<summary type="html">&lt;p&gt;210.28.131.13: Created page with &amp;#039;:{|border=&amp;quot;1&amp;quot; |&amp;#039;&amp;#039;&amp;#039;{{{1}}}&amp;#039;&amp;#039;&amp;#039; {{{2}}} |}&amp;#039;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;:{|border=&amp;quot;1&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;{{{1}}}&#039;&#039;&#039;&lt;br /&gt;
{{{2}}}&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>210.28.131.13</name></author>
	</entry>
</feed>