C Exercises: Print the first 20 numbers of the Pell series
35. Pell Series Variants
Write a program in C to print the first 20 numbers of the Pell series.
Sample Solution:
C Code:
Sample Output:
The first 20 numbers of Pell series are: 0 1 2 5 12 29 70 169 408 985 2378 5741 13860 33461 80782 195025 470832 1136689 2744210 6625109
Visual Presentation:
Flowchart:

For more Practice: Solve these Related Problems:
- Write a C program to generate Pell numbers iteratively and compare the result with a recursive approach.
- Write a C program to compute Pell numbers using matrix exponentiation techniques.
- Write a C program to generate the Pell series and display the ratio of successive terms.
- Write a C program to output Pell numbers along with their approximated multipliers for √2.
C Programming Code Editor:
Contribute your code and comments through Disqus.
Previous: Write a program in C to find narcissistic decimal numbers within a specific range.
Next: Write a program in C to check if a number is Keith or not.
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.