cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Another infinite series
Another infinite series
Nov 9, 2012 at 12:03am UTC
bowlbase
(25)
I should print 0, 1, 3, 6, 11, 19...
I'm told
"where a1=0, a2=1, a3=(1+a1)+ (1+a2)
and
a(n)=(1+a(n-2))+(1+a(n-1))
I seriously haven't any idea how to do this.
Nov 9, 2012 at 12:23am UTC
bowlbase
(25)
never mind, I didn't realize that it was just the Fib sequence minus 2. Got it now.
Topic archived. No new replies allowed.