A couple sequences

Hello members of c++ community! :) Today is the sixth day when I am trying to solve a couple sequences. Maybe here are some very smart guys for who these sequences are easy game?

First:

5, 18, 25, 15, 2, -5

Second:

2, 7, 1, 8, 2, 8
What are you need exactly to do with these sequences?
I need to find next number.
Hits:

5   18   25   15   2    -5
 +13   +7  -10  -13  -7    ?


What do you see in the patterns?

The second also has patterns to it. It is not clear what the number after the next would be, but a guess to the next number is not too hard.


Good luck.


Topic archived. No new replies allowed.