Find the number of ordered pairs of integers $(a,b)$ such that the sequence \[ 6,7,8,a,b,35,45,55 \] is strictly increasing and no set of four (not necessarily consecutive) terms forms an arithmetic progression.
There are $\binom{26}2=325$ pairs with $8<a<b<35$.
Remove those creating a $4$-term AP, such as $(6,7,8,a)$, $(7,8,a,b)$, $(8,a,b,\ldots)$, $(a,b,35,\ldots)$ and $(b,35,45,55)$, using inclusion–exclusion (checked by direct enumeration).