in reply to Re^4: Recursion problem
in thread Recursion problem

Where are you stuck? Saying "here's a problem, i'm stuck" doesn't show what you tried ... its hard to believe your teacher assigned homework you could never hope to solve on your own.