If i am not wrong in simple words , a function calling itself is recursion ??
Try this , its C++
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int n,m,i,current,next,twoaway;
cout<<"How many numbers do you want to compute?!: ";
cin>>n;
cout<<"Series will start in...