I have the following qn and I am in doubt how to get started. I have a few formulas but the problem is I am uncertain how to equate in
Java.
From the start program, I would provide a series of numbers and based on the numbers, I have to equate to see which best fits into the formula. It has to determine which type(s) of sequence these numbers could belong to, and in each case predict the next five numbers in the sequence.
Formulas are
Constant uk = a
Arithmetic uk = uk-1+b
Geometric uk = ruk-1
Recurrent uk = auk-1 + buk-2 + c
Appreciate your help!!!