Your Lucas function looks off. The goal is to do something that behaves exactly like the fibonacci function except with the first and second values being 2 and 1, instead of 0 and 1. Here, m is an "index" and shouldn't be returned to the user since the user wants a number in the sequence, not an index.