Suppose I have an "arbitrary" sequence of numbers and as a convenience, I want some type of concise formula to be able to generate/regenerate that exact sequence. How can I do it? Can this be done for any sequence or are there limitations? In math, can this "sequence generator" have a bunch of if statements to handle "sub-sequences" and/or erratic shifts?
Here is a sequence so how would I find a formula for this and in general, other similar sequences?
$200, 100, 50, 60, 75, 39, 15, 35$
For any finite sequence of real numbers (as in your example), there is a formula that exactly reproduces it, e.g. an interpolating polynomial.
For your example sequence $[200,100,50,60,75,39,15,35]$ (indexed from $1$ to $8$), the lowest degree interpolating polynomial is
$$-\frac{163 x^7}{2520} + \frac{17 x^6}{9} - \frac{3947 x^5}{180} + \frac{9337 x^4}{72} - \frac{151531 x^3}{360} + \frac{55867 x^2}{72} - \frac{360187 x}{420} + 593 $$
which exactly reproduces the given sequence for $x=1,2,3,4,5,6,7,8$.