I have a new question regarding a Fibonacci sequence that is kinda unique. It involves two input M and N and looks like this:
Example :
2-Fibonacci sequence: {1, 1, 2, 3, 5, 8, 13, ...}
3-Fibonacci sequence: {1, 1, 2, 4, 7, 13, 24, ...}
I need to code a Python function that can print out the first M elements of an N-Fibonacci sequence.
For example:
Input → N=3; M=5 Output →1 1 2 4 7
Input → N=2; M=7 Output →1 1 2 3 5 8 13
I would really appreciate any help