68.0k views
1 vote
If f(1)=4 and f(n)=f(n-1)+5 then what is the value of f(5)

User Treps
by
8.5k points

1 Answer

2 votes

The value of f(5) is 24. Value of f(5) is obtained from the function f(n)= f(n-1)+5 and f(1)=4.

Explanation:

The given function and value are,

f(n)=f(n-1)+5,

f(1)=4

To find f(5), we need to find the values of f(2), f(3), f(4) because in the function f(n-1) is available.

Step:1

Take, n=2,

From the given function,

f(2)=f(2-1)+5

f(2)=f(1)+5

f(2)=4+5

f(2)=9

Step:2

Take, n=3,

From the given function,

f(3)=f(3-1)+5

f(3)=f(2)+5

f(3)=9+5

f(3)=14

Step:3

Take, n=4,

From the given function,

f(4)=f(4-1)+5

f(4)=f(3)+5

f(4)=14+5

f(4)=19

Step:4

Take, n=5,

From the given function,

f(5)=f(5-1)+5

f(5)=f(4)+5

f(5)=19+5

f(5)=24

Result:

If f(1)=4 and f(n)=f(n-1)+5,the value of f(5) is 24.

User Kuffs
by
7.3k points