
Hello Community members,
A solution to last week’s challenge can be found here.
This week’s challenge was submitted by Kapil Rautela @kapil_rautela1990 . Thank you, Kapil, for submitting this fun challenge!
We are going to explore the intriguing Pell numbers. In mathematics, the Pell numbers are an infinite sequence of integers that follows a simple yet fascinating rule: each number is the sum of twice the previous number, plus the Pell number before that. This means that the sequence starts with 0 and 1, and each subsequent number is generated by this formula:
P(n)=2×P(n−1)+P(n−2)
For example, the first few terms of the Pell sequence look like this:
- P(0) = 0
- P(1) = 1
- P(2) = 2
- P(3) = 5
- P(4) = 12
Your challenge is to find the first 30 numbers in this sequence.
Ready to see how the numbers grow? It is a fun and rewarding journey, and you will quickly discover how this simple formula creates such a unique pattern.
Good luck!
The Academy Team