Can the following function function getCoeffs(r) be simplified? It gives coefficients (a list of r+1 numbers) for a linear recursion. The function getSequence
getCoeffs(r)
getSequence