Is it possible to find all arithmetic progressions that exist in a set of say 3 integers. I know that the simplest arithmetic progression would be $$ a_n = a_1 + (n-1)d\:\text{ with }\:d = 1. $$ This progression does exist always in between any $3$ integers. But I can imagine that other arithmetic progressions may also possible. I also know how to calculate $d$ and $a_1$ when two values are given with their corresponding term number. This can be solved by an equation system. Here is an example:
Suppose we have $a_3 = -3$ and $a_8 = 22$: then, since $$ \begin{split} a_3 &= a_1 + 2d = -3 ;\\ a_8 &= a_1 + 7d = 22\\ \end{split} \implies \begin{split} 5d &= 25,\\ d &= 5 ,\\ a_1 &= -13\\ \end{split} $$ But I look for a calculation that does not need the definition of how many times $d$ is in between.
Assume, we only have the values $-13$, $-3$ and $22$. Which different arithmetic progressions come into question that have these three members? There should be several possibilities and I need them all ;)
I assume that all terms must be integers.
If the numbers are $a$, $b$, and $c$ in increasing order (without loss of generality), let $d = \gcd(b-a, c-b)$. Then the number of different arithmetical series that contain all three numbers is equal to the number of (positive) factors of $d$, including $1$ and $d$ itself.
For the example you give, where $a = -13, b = -3, c = 22$, we have $d = \gcd(10, 25) = 5$. So there are two series, with constant differences $1$ and $5$, respectively.
If this is unclear, consider that the constant difference in the series must divide $b-a$ (otherwise, there would not be a whole number of terms from $a$ to $b$). Likewise for $c-b$. If this difference must divide $b-a$ and $c-b$, it must divide their greatest common divisor.