I need a little clarity in the description of this problem. Is there some background information that can help shed more light on what the problem is about?
For example how are P1 and P2 different?
The output produces a list of numbers but how are they related to calculating X^n?
For example,
n = 37
[1, 2, 3, 5, 8, 16, 21, 37]
size = 8
Thank you for your explanation, it i very much appreciated