Is there any method where I could count the possibilities of X number of number/character/anything-PAIRS (everything is appearing twice) in Y number of places?
The same question: How many different ways can the given numbers placed to a given size of empty place, where every number is doubled?
Not all of the numbers need to be placed into an order, but all of the rooms must be filled, and if a number is placed its pair needs to be used too. (The room's size will never be larger than the total number of items * 2, and is always even.)
What I learned already: when there are no pairs, just single items we count the possible orders:
for example 4 items (1 2 3 4) in 4 rooms, and under that 10 items in 10 rooms:
4*3*2*1 = 24
10*9*8*7*6*5*4*3*2*1 = 3,628,800
but I need to use pairs (doubles), which seems to make it a lot more difficult.
[4 pairs in 2 slots = 4 orders possible]
1 1
2 2
3 3
4 4
[4 pairs in 4 slots = 24 if counted right]
1 1 2 2
1 2 1 2
1 1 3 3
1 3 1 3
1 1 4 4
1 4 1 4
2 2 1 1
2 1 2 1
2 2 3 3
2 3 2 3
2 2 4 4
2 4 2 4
3 3 1 1
3 1 3 1
3 3 2 2
3 2 3 2
3 3 4 4
3 4 3 4
4 4 1 1
4 1 4 1
4 4 2 2
4 2 4 2
4 4 3 3
4 3 4 3
[3 pairs in 6 slots = ?]
1 1 2 2 3 3
1 1 2 3 2 3
1 1 2 3 3 2
1 1 3 2 2 3
1 1 3 2 3 2
1 1 3 3 2 2
1 2 1 2 3 3
1 2 1 3 2 3
1 2 1 3 3 2
1 2 3 1 2 3
1 2 3 1 3 2
1 2 3 2 1 3
1 2 3 2 3 1
1 2 3 3 1 2
1 2 3 3 2 1
1 3 1 2 2 3
1 3 1 2 3 2
1 3 1 3 2 2
1 3 2 1 2 3
1 3 2 1 3 2
1 3 2 3 1 2
1 3 2 3 2 1
2 1 1 2 3 3
etc... stopping here, it is getting too complicated already for manual counting
[50 pairs in 100 slots = any way to solve these?]