How many ways to construct an increasing list given N^2 cards

tsuyakas1

tsuyakas1

Answered question

2022-09-06

How many ways to construct an increasing list given N 2 cards
There are N people and N 2 cards. They are divided into N cards with the number 1, N with the number 2, N with the number 3, and so on. Each person will choose one card and give it back afterwards. How many ways to make a line with N cards such that they are sorted in increasing order For example: 4 will give 35 ways. (1,2,3,4, 2,2,2,4 , 3,4,4,4, ...etc)
The answer I found is ( N + N 1 N ) ( 2 N 1 N ) . However, I cannot see the logic behind it?

Answer & Explanation

Krista Leon

Krista Leon

Beginner2022-09-07Added 12 answers

Step 1
Since each numbered card is returned after selection, you essentially have an unlimited number of each of 1,2,3...N cards at your disposal.
To keep count of how many times each card has been used, put a counter ("ball") in N numbered bins.
Step 2
The stars and bars formula gives
( N + N 1 N 1 ) = ( N + N 1 N ) = ( 2 N 1 N )
Yaritza Cardenas

Yaritza Cardenas

Beginner2022-09-08Added 20 answers

Step 1
As others have pointed out, this is a classic stars and bars. However, let's put some combinatorial proof flavor to this.
Step 2
Imagine you have decks of 1s, 2s, ... , Ns lining up in front of you. At first you pick up the 1s deck. You need to do one of the following actions; draw a card from the deck in your hand and put it in the line or put the deck in your hand away and pick up the next card deck. By the end of this activity you'd have drawn N cards (thus forming the line you want) and you'd have put N 1 decks away and have the Ns deck in your hand. Notice that you have performed a total of 2 N 1 actions, N of which are drawing cards. Is the number of possible way to do this ( 2 N 1 N ) ?

Do you have a similar question?

Recalculate according to your conditions!

New Questions in Discrete math

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?