Questioning Recurrence Relation: 3n-1 - an-1

Click For Summary

Homework Help Overview

The discussion revolves around a recurrence relation involving the counting of invalid strings based on certain conditions. The subject area includes combinatorial reasoning and string theory, particularly focusing on sequences that avoid consecutive numbers.

Discussion Character

  • Conceptual clarification, Assumption checking, Problem interpretation

Approaches and Questions Raised

  • Participants are questioning the reasoning behind the formula for counting invalid strings, specifically why it is expressed as 3n-1 - an-1 instead of 3(3n-1 - an-1). They explore cases where the first two numbers in a string must be the same to meet the requirement of having consecutive numbers.

Discussion Status

The discussion is active, with participants providing different interpretations of the requirements for valid strings. Some have offered reasoning to clarify the conditions under which strings are considered invalid, while others seek further explanation of the logic presented.

Contextual Notes

There is an ongoing debate about the definitions and assumptions related to the structure of valid and invalid strings, particularly regarding the placement of consecutive numbers within the strings. Participants are encouraged to articulate their reasoning more clearly to facilitate understanding.

Miike012
Messages
1,009
Reaction score
0
I boxed the portion of the solution that I am questioning.

How come the number of invalid strings is only 3n-1 - an-1 and not
3(3n-1 - an-1) ?

As you can see there are three cases (Which are to the right of the black box)

In all the three cases, the portion boxed in red is a string of length n-1 and does not have any consecutive numbers

Case 1:
The first number is a 1, then the second number must also be a 1
so that the string has a pair of consecutive numbers

Case 2
The first number is a 2, then the second number must also be a 2
so that the string has a pair of consecutive numbers

Case 3
The first number is a 0, then the second number must also be a 0
so that the string has a pair of consecutive numbers
 

Attachments

  • aaaa.jpg
    aaaa.jpg
    15.7 KB · Views: 521
Physics news on Phys.org
Miike012 said:
I boxed the portion of the solution that I am questioning.

How come the number of invalid strings is only 3n-1 - an-1 and not
3(3n-1 - an-1) ?

As you can see there are three cases (Which are to the right of the black box)

In all the three cases, the portion boxed in red is a string of length n-1 and does not have any consecutive numbers

Case 1:
The first number is a 1, then the second number must also be a 1
so that the string has a pair of consecutive numbers

Case 2
The first number is a 2, then the second number must also be a 2
so that the string has a pair of consecutive numbers

Case 3
The first number is a 0, then the second number must also be a 0
so that the string has a pair of consecutive numbers
This is not true. There is no requirement that the "pair of consecutive numbers" be the first two. For example, 100 is a valid string with n= 3.
 
HallsofIvy said:
This is not true. There is no requirement that the "pair of consecutive numbers" be the first two. For example, 100 is a valid string with n= 3.

The string of length n has the requirment that it must have a pair of consecutive numbers, so if the 2nd term through the nth term of the string don't have a pair of consecutive numbers then the first term and second term must be the same inorder to satisfy the requirement.
 
Miike012 said:
I boxed the portion of the solution that I am questioning.

How come the number of invalid strings is only 3n-1 - an-1 and not
3(3n-1 - an-1) ?

As you can see there are three cases (Which are to the right of the black box)

In all the three cases, the portion boxed in red is a string of length n-1 and does not have any consecutive numbers
I don't understand your logic. The reasoning in the attachment starts with an invalid string length n-1. By definition there are an-1 valid strings of that length, and obviously there are 3n-1 total strings of that length. Therefore there are (3n-1 - an-1) invalid strings length n-1. For each such invalid string, there is exactly one way of tacking on an nth (at the given end) to produce a valid string length n.
If that doesn't help, I'll need you to spell out your own reasoning more clearly.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
3K
Replies
14
Views
5K
  • · Replies 8 ·
Replies
8
Views
2K
Replies
5
Views
2K
Replies
5
Views
2K
Replies
1
Views
2K
Replies
5
Views
2K
Replies
10
Views
3K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 18 ·
Replies
18
Views
3K