228k views
0 votes
If f(1) = 2 and f(n) = nf (n - 1) 2 then find the value of f (5).

1 Answer

0 votes

Answer:

The value of f(5) is 15.

Explanation:

To find the value of f(5), we can use the given recursive formula f(n) = n * f(n-1) / 2.

Let's calculate step by step:

1. Start with f(1) = 2, as given.

2. Use the recursive formula to find f(2):

f(2) = 2 * f(2-1) / 2

= 2 * f(1) / 2

= 2 * 2 / 2

= 4 / 2

= 2

3. Continue using the recursive formula to find f(3):

f(3) = 3 * f(3-1) / 2

= 3 * f(2) / 2

= 3 * 2 / 2

= 6 / 2

= 3

4. Similarly, find f(4):

f(4) = 4 * f(4-1) / 2

= 4 * f(3) / 2

= 4 * 3 / 2

= 12 / 2

= 6

5. Finally, find f(5):

f(5) = 5 * f(5-1) / 2

= 5 * f(4) / 2

= 5 * 6 / 2

= 30 / 2

= 15

Therefore, the value of f(5) is 15.

User Airith
by
7.9k points

No related questions found

Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.

9.4m questions

12.2m answers

Categories