Writing a recursive definition of the set permutation function

Click For Summary
The discussion revolves around finding a recursive definition for the set permutation function, specifically for a set A = {T, T, R}, which has six total permutations but only three distinct ones. The formula for unique permutations is derived from the factorial of the total elements divided by the factorials of identical elements. The user is struggling to express this function recursively, particularly due to an error in their initial attempt. A suggestion is made to look at the recursive definition of binomial coefficients, which may provide insight into constructing a recursive approach for permutations. The feasibility of a recursive definition for this specific problem is questioned, indicating a need for further exploration.
W3bbo
Messages
31
Reaction score
0
(Apologies for the lack of LaTeX formatting - I usually do my typesetting with MathType, but I only have Microsoft Equation Editor on this computer which doesn't have LaTeX export).

This isn't a homework question, but is problem I've discovered I'm facing after diving into another problem, but I digress:

Consider this set, A:

A = { T, T, R }

It has six proper permutations, but only three distinct permutations:

TTR, TRT, RTT

The expression for the number of unique permutations (in this case) is:

|A|! / ( |'T' elements| ! * |'R' elements| ! )

So: 3! / 2! * 1! which is 6/2 == 3

Due to certain requirements, I need to express this function recursively. Because the factorial function is used, I figured I could take it from there.

The expressions below take the permutation-count formula and assumes that every set A is comprised of N 'T' elements, and M 'R' elements and is called "routes".

KSsTC.png


...but I can't figure out how to make it recursive. Note the huge error on the third line down, it does not follow from the line above.

Is a recursive definition even possible?

Thanks!
 
Mathematics news on Phys.org
You can express a binomial coefficient recursively like this (see wikipedia article):
\begin{pmatrix} n \\ k \end{pmatrix} = \begin{pmatrix} n-1 \\ k-1 \end{pmatrix} + \begin{pmatrix} n-1 \\ k \end{pmatrix}

You can interpret this as Pascal's triangle.
 
Here is a little puzzle from the book 100 Geometric Games by Pierre Berloquin. The side of a small square is one meter long and the side of a larger square one and a half meters long. One vertex of the large square is at the center of the small square. The side of the large square cuts two sides of the small square into one- third parts and two-thirds parts. What is the area where the squares overlap?

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 26 ·
Replies
26
Views
834
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
858
  • · Replies 17 ·
Replies
17
Views
3K
  • · Replies 2 ·
Replies
2
Views
4K
Replies
11
Views
12K