SOLUTION: Your help will be appreciated thanks! Let a(1)=5. Define a(n) to be (a(n-1))/2 if a(n-1) is even, 3a(n-1)+1 if a(n-1) is odd for all other natural numbers n. What is the fourth te

Algebra.Com
Question 1020460: Your help will be appreciated thanks!
Let a(1)=5. Define a(n) to be (a(n-1))/2 if a(n-1) is even, 3a(n-1)+1 if a(n-1) is odd for all other natural numbers n. What is the fourth term of the sequence?

Found 2 solutions by ikleyn, Theo:
Answer by ikleyn(52809)   (Show Source): You can put this solution on YOUR website!
.
Your help will be appreciated thanks!
Let a(1)=5. Define a(n) to be (a(n-1))/2 if a(n-1) is even, 3a(n-1)+1 if a(n-1) is odd for all other natural numbers n.
What is the fourth term of the sequence?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Let us calculate the second term. Since =5 is odd,  =  = 3*5+1= 16.

Now calculate the third term. Since =16 is even,  =  =  = 8.

Next calculate the fourth term. Since =8 is even,  =  =  = 4.


Answer by Theo(13342)   (Show Source): You can put this solution on YOUR website!
a.1 = 5

if a.n-1 is even, then a.n = a.n-1 / 2.

if a.n-1 is odd, then a.n = 3 * a.n-1 + 1.

i'm using the convention that a.n is equal to a sub n which is equal to a[n] which is equal to an

we have a.1 = 5.

since a.1 is odd, then a.2 = 3 * a.1 + 1 = 3 * 5 + 1 = 16.

since a.2 is even, then a.3 = a.2 / 2 = 16/2 = 8.

since a.3 is even, then a.4 = a.3 / 2 = 8/4 = 4.

i believe the fourth term is equal to 4, based on this logic.


RELATED QUESTIONS

1. Let X(k) denote the N-point DFT of the N-point sequence x(n) a) If x(n)... (answered by Fombitz)
For positive integer values of N, let N be defined as: N = 2 + 4 + 6 + ... + N, if N (answered by Edwin McCravy)
Dear math teacher, I am having difficulties with the following problem: 4 times nC2 (answered by Theo)
Will n! +2, n! +3,..., n! +n for n>=2 always be a sequence of n-1 composite numbers?... (answered by jim_thompson5910)
Let f be the function which associates to an integer n the number 1 if n is even, and -1... (answered by solver91311)
n(n+1)(n+2)is a multiple of 6. (answered by MathLover1)
Which equation should be used to solve this problem? The sum of two consecutive odd... (answered by Alan3354)
1. A(n)=-3+(n-1)(5) (answered by tommyt3rd)
1. A(n)=-3+(n-1)(5) (answered by tommyt3rd)