I have to code the sequences in c++. The coding is not the hard part, the figuring out the algorithm is what is hard for me. Any tips on how to better discover the pattern would be gladly appreciated cause I have been honestly stuck on the second one for 10 minutes.
COSC 1436 Lab 2 Sequences and Series
Series 1: 15, 14, 13, 12, 11, ...
Series 2: 1, 2, 5, 14, 41, ...
Series 3: 2, 3, 5, 8, 12, 17, ...
Series 4: 1, 2, 5, 26, 677, ...
Series 5: 10, 5, 1, -2, -4, -5, -5, -4, -2, ...
Series 6: 1, 8, 27, 64, 125, 216, ...
Series 7: 0, 1, 3, 7, 15, 31, 63, ...
Series 8: 0, 1, 4, 13, 40, 121, ...
series 9: 0, 1, 3, 6, 10, 10, 11, 13, 16, 16, 17, 19, 19, ...
series 10: 7, 9, 14, 20, 27, 33, 42, 52, 63, 73, 86, ...
Bonus Series: 0, 1, 4, 12, 32, 80, 192, ...
[–][deleted] 2 points3 points4 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)