Use polynomial fitting to find a closed formula for the sequence