segners recurrence formula