Question: Very Important Note: Please do NOT answer this question in Java, C++, or any language other than Common lisp. This is a LISP question, and
Very Important Note: Please do NOT answer this question in Java, C++, or any language other than Common lisp. This is a LISP question, and an answer is needed in the LISP programming language.
The Pell Numbers are defined as follows: Pn = 0 if n=0, 1 if n=1, 2*P(n-1)+P(n-2) otherwise Write a lisp program that computes the Pell numbers for an input argument n using:
a) An iterative approach
b) A recursive approach
For example pellnumbers (6) should return a list (0 1 2 5 12 29 70)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
