Question: part a do by hand part b is the the program this is bery confusing to me and this is all the information the problem
part a do by hand part b is the the program this is bery confusing to me and this is all the information the problem should be easy i just want to double check myself "use python"
Problem 1:
The Perrin numbers are the defined by the linear recurrence equation:
Where the following initial conditions are given:
(a) Calculate terms P(3) through P(5) by hand using the recurrence equation and initial conditions given above. Put your results in the table below.
| P(3) | P(4) | P(5) |
|
|
|
|
(b) Write a Python program that calculates Perrin numbers to the nth term.
1) User inputs a positive, real integer value n. Use an input command for this.
2) Compute the Perrin sequence to the nth term using the recurrence equation and initial conditions given above. Save the terms in a list.
3) The program should output the Perrin sequence for the number of terms entered by the user.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
