i hav thiught a lot about the problem but at the end i was not even able to mave an inch forword .the problem is: we hav to develop a program that make user input a series and then will calculate the misiong term.
ex:
1>4,6,9, ,14,16,19,...
then the answer should be 11
2>1,2,7,16,29,46,?,...
then it should return 67