
Solve in python
The Pell numbers are an infinite sequence of integers that can be defined as follows: \[ P_{n}=\left\{\begin{array}{ll} 0 & \text { if } n=0 \\ 1 & \text { if } n=1 \\ 2 P_{n-1}+P_{n-2} & \text { otherwise. } \end{array}\right. \] In other words, the sequence of Pell numbers starts with 0 and 1 , and then each Pell number is the sum of twice the previous Pell number and the Pell number before that. The first few terms of the sequence are: \( 0,1,2,5,12,29, \ldots \) Define the function get pell number ( ) that takes a single integer parameter \( n \). The function returns the nth Pel number. You can assume that the value for \( n \) will always be valid (i.e., \( n>=0 \) ). Some examples of the function being called are shown below. For example: Answer: (penalty regime: \( 0,0,5,10,15,20,25,30,35,40,45,50 \% \) )