Recursive function: f(n) = f(n-1) + 3
Explicit function: f(n) = 3n
Explanations:Amount of money Peter has to spend = $40
Cost of each ride = $3
Let the number of rides be represented as n
The recursive function is a function in which each term always depends on the preceding terms. In this case, Peter pays $3 after every ride. This means that he adds 3 to every preceding amount that he spends on the rides.
The recursive function is therefore:
f(n) = f(n-1) + 3
The explicit function: This function is always expressed in a clear form (i.e. explicitly)
3 x number of rides = Amount spent
The explicit function is therefore:
f(n) = 3n