notes on recurrance relations