def mortal_rabbits(n, m):
    sequence = [1, 1]
for i in range(n - 2):
    new_num = 0
if i + 2 < m:
    new_num = sequence[i] + sequence[i + 1]
else:
    for j in range(m - 1):
        new_num += sequence[i - j]
sequence.append(new_num)
return sequence
Fibonacci Rabbits Dying After Arbitrary # of Months