I looked at Predict next number from a series and Next number in series but I did not found the answer I was looking for.
Is it possible to construct a rule for a sequence, that generates arbitrary elements?
For example $x_1, x_2, x_3, x_4$ are given and I have to find $x_5$. Can I come up with a rule which produces $x_{1-4}$ and any possible integer for $x_5$?