How do give the recursive form for a certain function?

  • Thread starter Thread starter thename1000
  • Start date Start date
  • Tags Tags
    Form Function
Click For Summary
The discussion focuses on deriving recursive forms for various functions, with examples provided for clarification. For the function f(n) = 2 + (-1)^n, a recursive formula is established where f(n+1) = f(n) + (-2)(-1)^n, starting with f(1) = 1. For f(n) = n(n+1), the recursive relationship is f(n+1) = f(n) + 2(n+1), with f(1) = 2, allowing for the calculation of subsequent values. The participants emphasize the importance of understanding the relationship between f(n) and f(n+1) to establish these recursive definitions. The discussion highlights the need for clarity on domains and the definition of recursive forms to assist in solving similar problems.
thename1000
Messages
16
Reaction score
0
I only have the explanation for linear homogeneous ones. I don't know how to do these:

Give a recursive form (including bases) for the following functions:
a. f(n) = 2 + (-1)^n
b. f(n) = n(n+1)
c. f(n) = 2n - 2
d. f(n) = n^2 – n
e. f(n) = 3^n + n⋅3^n

If someone could explain one or two it would help alot.

Thanks
 
Physics news on Phys.org
Maybe someone could help if you gave more information. What are the domains and codomains supposed to be? What counts as a recursive form (what examples do you have)?

Without more info, my best guess is something like this. For (a), assuming n ranges over N, when n is odd, f(n) = 1; when n is even, f(n) = 3. So you could take n = 1 as your base:
f(1) = 1​
and then use the fact that oddness and evenness alternate in N:
if f(n-1) = 1, then f(n) = 3; otherwise, f(n) = 1​
But there are several ways that you could express that, and your teacher or book might want something else.

(b) can be expressed as the product of 2 and the sum of 1 to n:
f(1) = 2(1) = 2
f(2) = 2(1 + 2) = 6
f(3) = 2(1 + 2 + 3) = 12
...​
So this definition involves another recursive function.
 
thename1000 said:
I only have the explanation for linear homogeneous ones. I don't know how to do these:

Give a recursive form (including bases) for the following functions:
a. f(n) = 2 + (-1)^n
b. f(n) = n(n+1)
c. f(n) = 2n - 2
d. f(n) = n^2 – n
e. f(n) = 3^n + n⋅3^n

If someone could explain one or two it would help alot.

Thanks
Step one, compute a few of the values to get a handle on exactly what it is.
for (a), f(1)= 2- 1= 1, f(2)= 2+ 1= 3, f(3)= 2-1= 1, etc. In other words, f(n)= 1 if n is odd, 3, if n is even.

Step two, try to find a relation between f(n) and f(n+1).
f(n+1)- f(n)= 2+ (-1)^(n+1)- 2- (-1)^n= (-1)(-1)^n- (-1)^n= (-2)(-1)^n.

Step three, check that this recursive formula gives the same thing you got in step one to reassure yourself.

f(n+1)= f(n)+ (-2)(-1)^n. That, together with f(1)= 1, is a recursive formula for this sequence.
Note that, according to this, f(2)= f(1)+ (-2)(-1)^1= 1+ 2= 3, f(3)= f(2)+ (-2)(-1)^2= 3- 2= 1, etc.

For b, f(n)= n(n+1), f(1)= 1(2)= 2, f(2)= 2(3)= 6, f(3)= 3(4)= 12, etc. f(n+1)- f(n)= (n+1)(n+2)- n(n+1). Factoring out (n+1), f(n+1)- f(n)= (n+1)(n+2-n)= 2(n+1). f(n+1)= f(n)+ 2(n+1), and f(1)= 2.

By that formula f(2)= f(1)+ 2(2)= 2+ 4= 6, f(3)= f(2)+ 2(3)= 6+ 6= 12, etc.

For (2), since there is no addition or subtraction (addition does not work well together with multiplication!), you could also consider the relation between f(n+1) and f(n) by dividing: f(n+1)/f(n)= (n+1)(n+2)/n(n+1)= (n+2)/n. f(n+1)= [(n+2)/n]f(n) with f(1)= 2, is another recurvsive formula for the same sequence. f(2)= [(1+2)/1]f(1)= 3(2)= 6, f(3)= [(2+2)/2]f(2)= 2(6)= 12, etc.
 
Last edited by a moderator:
The standard _A " operator" maps a Null Hypothesis Ho into a decision set { Do not reject:=1 and reject :=0}. In this sense ( HA)_A , makes no sense. Since H0, HA aren't exhaustive, can we find an alternative operator, _A' , so that ( H_A)_A' makes sense? Isn't Pearson Neyman related to this? Hope I'm making sense. Edit: I was motivated by a superficial similarity of the idea with double transposition of matrices M, with ## (M^{T})^{T}=M##, and just wanted to see if it made sense to talk...

Similar threads

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