How to form an equation based off $x$ and $f(x)$ values

31 Views Asked by At

So I'm making a program (and I know, this isn't stack overflow) but I need help on ONE algorithm in order to finish it for good. Here's the pattern I'm dealing with:

When $x = 8, f(x) = 1$

When $x = 10, f(x) = 4$

When $x = 13, f(x) = 8$

This is hard to explain, but I need to figure out the pattern that $f(x)$ is going based off the 3 given $x$ values.

Would I be able to find an equation based off this information? Or is it too little information provided?