So I had a question in my mind: if given some specific no. of outputs, can you reverse engineer a function that will give you those values? For eg, if you have sequence of outputs $2, 3, 7, 17$, can you find a function that gives $f(1)=2, f(2)=3, f(3)=7, f(4)=17$?
Is it always possible to do so, or impossible to do, or should the given outputs satisfy a condition to do it systematically without guessing functions at random?
I have somewhat limited math knowledge, so I don't even know how to approach such a problem. If someone can explain it simply, that would be very much appreciated. Thanks in advance!
Try $f(x)=\dfrac{(x-2)(x-3)(x-4)}{(1-2)(1-3)(1-4)}2+\dfrac{(x-1)(x-3)(x-4)}{(2-1)(2-3)(2-4)}3+$
$\dfrac{(x-1)(x-2)(x-4)}{(3-1)(3-2)(3-4)}7+\dfrac{(x-1)(x-2)(x-3)}{(4-1)(4-2)(4-3)}17.$