Find a recursive formula for the number of combinations

  • Context: MHB 
  • Thread starter Thread starter CStudent
  • Start date Start date
  • Tags Tags
    Combinations Formula
Click For Summary

Discussion Overview

The discussion revolves around finding a recursive formula for the number of combinations of words of length 'n' that can be formed using the letters A, B, and C, while avoiding specific combinations: AB, AC, BA, and BC. Participants explore the concept of recursion in combinatorics and seek to clarify the relationship between the recursive formula and the legal combinations of letters.

Discussion Character

  • Exploratory, Technical explanation, Conceptual clarification

Main Points Raised

  • One participant expresses difficulty in understanding recursion and asks for guidance on how to derive a recursive formula for the number of permissible words.
  • Another participant suggests that if $a_n$ represents the number of permissible words of length $n$, then the recursive formula can be expressed as $a_n = 2 + a_{n-1}$, indicating that there are two combinations starting with A or B and $a_{n-1}$ combinations starting with C.
  • A participant points out that to complete the recursive definition, an initial condition $a_1 = 3$ should be included, representing the three words of length 1: A, B, and C.
  • Some participants question the leap to $a_{n-1}$, seeking clarification on how the recursive relationship is established and what $a_{n-1}$ represents in terms of legal combinations.
  • It is noted that if the first letter is C, there are no restrictions on the next letter, which leads to the conclusion that the situation is equivalent to starting again with $n-1$ places.

Areas of Agreement / Disagreement

Participants express uncertainty regarding the understanding of recursion and the specific formulation of $a_{n-1}$. There is no consensus on the clarity of the recursive relationship or the implications of the initial condition.

Contextual Notes

Participants highlight the need for a clearer understanding of how the recursive formula relates to the legal combinations, indicating potential gaps in the explanation of the recursion concept.

CStudent
Messages
14
Reaction score
0
I have some question integrating between combinatorics and recursive formulas.Generally, I have some difficulty with the concept of recursion, as well as with the recursion in programming unfortunately.I have some question to solve, and maybe you can guide me:Find a recursive formula and a terminal condition for the number of words with the length 'n' that can be written by $A, B, C$, such that these combinations won't be shown: $AB, AC, BA, BC$.Now, I know that if we start from $A$ or $B$ we of course have one option, 'n' $A's$, 'n' $B's$ - which are two combinations.Now, if we start from $C$, I understand we have more 'n-1' letters to write such that we don't write the illegal ones.I know that means we have $a_{n-1}$ combinations after $C$.
But that is what I don't understand, what is that $a_{n-1}$, how do we know it really contains only the legal combinations?I wold love to get some sense of this concept.Thanks.
 
Physics news on Phys.org
CStudent said:
I have some question integrating between combinatorics and recursive formulas.Generally, I have some difficulty with the concept of recursion, as well as with the recursion in programming unfortunately.I have some question to solve, and maybe you can guide me:Find a recursive formula and a terminal condition for the number of words with the length 'n' that can be written by $A, B, C$, such that these combinations won't be shown: $AB, AC, BA, BC$.Now, I know that if we start from $A$ or $B$ we of course have one option, 'n' $A's$, 'n' $B's$ - which are two combinations.Now, if we start from $C$, I understand we have more 'n-1' letters to write such that we don't write the illegal ones.I know that means we have $a_{n-1}$ combinations after $C$.
But that is what I don't understand, what is that $a_{n-1}$, how do we know it really contains only the legal combinations?I wold love to get some sense of this concept.Thanks.
If $a_n$ is the number of permissible words of length $n$, then you have shown that $a_n = 2 + a_{n-1}$. (In fact, there is only one word starting with A, one word starting with B, and $a_{n-1}$ words starting with C.) That is the recursive formula. To complete the definition, you need to add that $a_1 = 3$. I'm guessing that this is what the question means by a terminal condition, though I would call it the initial condition. It simply says that there are three words of length 1, namely A, B and C.
 
Opalg said:
If $a_n$ is the number of permissible words of length $n$, then you have shown that $a_n = 2 + a_{n-1}$. (In fact, there is only one word starting with A, one word starting with B, and $a_{n-1}$ words starting with C.) That is the recursive formula. To complete the definition, you need to add that $a_1 = 3$. I'm guessing that this is what the question means by a terminal condition, though I would call it the initial condition. It simply says that there are three words of length 1, namely A, B and C.

Yes, but I have an obstacle in understanding the concept of the recursion...

Again, I don't understand how we can leap to $a_{n−1}$. Okay, after the first C, we have n-1 places, how does it tells us that has $a_{n−1}$? How do we know what is this $a_{n−1}$ at all?

Thank you.
 
CStudent said:
Yes, but I have an obstacle in understanding the concept of the recursion...

Again, I don't understand how we can leap to $a_{n−1}$. Okay, after the first C, we have n-1 places, how does it tells us that has $a_{n−1}$? How do we know what is this $a_{n−1}$ at all?

Thank you.
If the first letter is a C then there is no restriction on what the next letter can be. In other words, it's exactly equivalent to starting again, but with only $n-1$ places instead of $n$.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 16 ·
Replies
16
Views
4K
  • · Replies 11 ·
Replies
11
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 18 ·
Replies
18
Views
3K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 29 ·
Replies
29
Views
5K