[math-fun] solving for a sequence