MHB Solving for specific variable when solving a recurrence equation

Click For Summary
The discussion focuses on solving a recurrence equation of the form T(n) = T((n-1)/2) + 2C. The user attempts to unroll the equation using a top-down approach to express T(n) in terms of k, leading to T((n-k)/2^k) + 2kC. The challenge arises in solving for k, particularly with the equation n-k = 2^k, which complicates the process. Another participant suggests re-evaluating the unrolling to T((n-2^k+1)/2^k) + 2kC for potentially clearer insights. The conversation highlights the complexities of manipulating recurrence relations and finding specific variable solutions.
ATroelstein
Messages
15
Reaction score
0
I have the following recurrence equation, where C is just some constant:
$$
T(n) = 0, n = 1\\
T(n) = T(\frac{n-1}{2}) + 2C, n > 1
$$

Using a top-down approach to unrolling the equation to find the pattern, I get:

$$
T(n) = T(\frac{n-k}{2^{k}}) + 2kC
$$

Now I want to solve for k and associate it with n to finish solving the equation without k in it. In order to get:

$$
T(\frac{n-k}{2^{k}}) = T(1)
$$

Then:

$$
n-k = 2^{k}
$$

The problem I am running into is that I'm having trouble solving this for k. I have worked through many other examples where:

$$
n = 2^{k}
$$

and then I know:

$$
k = log_2 n
$$

But having the n-k is making it difficult for me to solve for k. Thanks in advance.
 
Physics news on Phys.org
ATroelstein said:
Using a top-down approach to unrolling the equation to find the pattern, I get:

$$
T(n) = T(\frac{n-k}{2^{k}}) + 2kC
$$

Hi ATroelstein! :)

The equation you're trying to solve is not very solvable.

But perhaps you could redo the unrolling of the equation and get:
$$
T(n) = T\left(\frac{n-2^k+1}{2^k}\right) + 2kC
$$
 
There is a nice little variation of the problem. The host says, after you have chosen the door, that you can change your guess, but to sweeten the deal, he says you can choose the two other doors, if you wish. This proposition is a no brainer, however before you are quick enough to accept it, the host opens one of the two doors and it is empty. In this version you really want to change your pick, but at the same time ask yourself is the host impartial and does that change anything. The host...

Similar threads

Replies
29
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 13 ·
Replies
13
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
9
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K