F(n)=(1/2)f(n+1)+(1/2)f(n-1)-1I got f(n)=n^2. I can not find

  • Thread starter dyh
  • Start date
In summary, there are multiple solutions to the problem of f(n)=(1/2)f(n+1)+(1/2)f(n-1)-1, including f(n)=n^2, f(n)=a+bn+n^2, and f(n)=c, as well as other general solution forms. It is important to carefully consider and choose the first two terms to find the value of f(n+1) in order to avoid contradictions in the solution process.
  • #1
dyh
11
0
f(n)=(1/2)f(n+1)+(1/2)f(n-1)-1

I got f(n)=n^2.

I can not find anymore solution except this.

I just wonder there are some more solutions about this problem or not.

I think there are more, but I don't know how to get to them.

I want to hear your opinion.

Thanks
 
Mathematics news on Phys.org
  • #3


Thanks
I know how to solve the general methods for solving recursions.

But I think this is some special case of it because there is some contradiction in particular solution.
I.e. when I put f(n)= c (constant) for non-negative integer n. then
I can get

c=(1/2)c+(1/2)c-1

so it looks like 0=-1

So, I need to try "cn" but there is also contradiction in this case similar to previous case.

then I need to try "cn^2". In this case, if I choose c as 1 then it can be a solution.

So, I just would like to know this is the only solution or not.

If not, I want to know how to get other solutions.
 
  • #4


oh.. I got some other general solution form

f(n) = a+bn+n^2, a,b are constant

But I still would like to know there would be more solutions or not. hehe
 
  • #5


dyh said:
Thanks
I know how to solve the general methods for solving recursions.

But I think this is some special case of it because there is some contradiction in particular solution.
I.e. when I put f(n)= c (constant) for non-negative integer n. then
I can get

c=(1/2)c+(1/2)c-1

so it looks like 0=-1

So, I need to try "cn" but there is also contradiction in this case similar to previous case.

then I need to try "cn^2". In this case, if I choose c as 1 then it can be a solution.

So, I just would like to know this is the only solution or not.

If not, I want to know how to get other solutions.

Sorry, I don't see it. Don't you have to choose the first two terms to find out the

value of f(n+1). Then, if you choose f(n)=f(n-1)=c , you get f(n+1)=2+c;

I don't see any contradiction.
 
  • #6


In my opinion,

if I choose f(n)=f(n-1)=c for any non-negative integer n, then f(n+1) would be "c" too
 
  • #7


O.K, let's see:

f(n)=(1/2)f(n+1)+ (1/2)f(n-1)-1

Set f(n)=c=f(n-1) . Then,

c= (1/2)f(n+1)+c/2-1 , so:

1+ c- c/2 = (1/2)f(n+1), so :

1+c/2= (2+c)/2=(1/2)f(n+1) , so f(n+1)=2+c .

That's what I get.
 

1. What does the function F(n) represent?

The function F(n) represents a sequence of numbers where each term is equal to half of the next term plus half of the previous term, minus one. The starting values for this sequence are f(0) and f(1).

2. How do I find the value of F(n) for a specific n?

To find the value of F(n) for a specific n, you can use the given formula and plug in the values for f(n+1) and f(n-1). You will also need to know the starting values for f(0) and f(1) in order to calculate F(n).

3. Can F(n) be represented as a closed-form expression?

Yes, F(n) can be represented as a closed-form expression. In this case, the function f(n) is equal to n^2, which can be written as a closed-form expression: F(n) = (n^2 + 1)/2.

4. Is there a specific method for finding the function f(n) for a given F(n)?

Yes, there is a specific method for finding the function f(n) for a given F(n). This method involves solving the given formula for f(n) by manipulating the equation and using the starting values for f(0) and f(1). In this case, the function f(n) is equal to n^2.

5. Are there any other ways to calculate F(n) besides using the given formula?

Yes, there may be other ways to calculate F(n) besides using the given formula. However, it would depend on the specific sequence and the values of f(0) and f(1). In some cases, it may be possible to find a pattern or recurrence relation that can be used to calculate F(n).

Similar threads

Replies
3
Views
706
  • General Math
Replies
7
Views
494
Replies
1
Views
394
  • General Math
Replies
2
Views
845
Replies
1
Views
764
  • General Math
Replies
3
Views
1K
  • General Math
Replies
33
Views
2K
Replies
2
Views
1K
Replies
7
Views
1K
  • Precalculus Mathematics Homework Help
Replies
4
Views
795
Back
Top