Another infinite series

I should print 0, 1, 3, 6, 11, 19...

I'm told
"where a1=0, a2=1, a3=(1+a1)+ (1+a2)

I seriously haven't any idea how to do this.
never mind, I didn't realize that it was just the Fib sequence minus 2. Got it now.
Topic archived. No new replies allowed.