سوال ۱۱۲ کنکور ارشد علوم کامپیوتر ۱۴۰۴
فرض کنید تعداد حالتهای قرار گرفتن ۵ شیء متمایز در ۳ ظرف متمایز، باشد بهطوری که هیچ ظرفی خالی نمانده و ترتیب اشیاء در ظرفها مهم باشد. همچنین تعداد حالتهای قرار گرفتن ۵ شیء متمایز در ۳ ظرف متمایز باشد، بهطوریکه هیچ ظرفی خالی نمانده و ترتیب اشیا در ظرفها مهم نباشد. کدام مورد درست است؟
پاسخ صحیح: گزینهٔ C —
We distribute distinct objects into distinct boxes with no empty box, comparing the unordered count with the ordered-within-box count .
Computing (order inside a box is irrelevant)
A placement where each box holds an unordered set, with no box empty, is exactly a surjection from the objects onto the distinct boxes. By inclusion–exclusion: Equivalently , where is a Stirling number of the second kind.
Computing (order inside each box matters)
Now each box holds an ordered sequence. The number of ways to split distinct objects into non-empty ordered lists in distinct boxes is given by times the Lah number , which simplifies to A clean way to see this: first arrange all objects in a row ( ways), then cut the row into non-empty contiguous blocks by choosing of the internal gaps ( ways), and assign block to box (boxes already distinct, so the left-to-right block order fixes the assignment). Hence
The ratio
Since , we get , which is option 3.
A quick sanity check on the ratio: per unordered placement, a box of size can be internally ordered in ways, so averaged over the surjective splits — the average product of over the block-size patterns equals .
Exam trick: For distinct objects into distinct boxes, "order inside the box matters" turns each block of size into arrangements; the no-empty ordered count is the slick (line up, then cut into non-empty pieces), while the unordered count is the surjection count .