two recursive functions that sum the integers between 1 and n