ladder

f(n) = f(n-1) + f(n-3) + f(n-5)