Recurrence formula