Find the number of ordered pairs of integers $(a,b)$ such that the sequence \[ 3,4,5,a,b,30,40,50 \] is strictly increasing and no set of four (not necessarily consecutive) terms forms an arithmetic progression.
There are $\binom{24}2=276$ pairs $6\le a<b\le29$. A four-term progression must use $a$ or $b$.
Bad pairs: $a=6$ ($3,4,5,6$): $23$; $20\in\{a,b\}$ ($20,30,40,50$): $23$, one of them $(6,20)$. Also $(7,9)$ ($3,5,7,9$), $(12,21)$ ($3,12,21,30$), $(16,28)$ ($4,16,28,40$). Total $23+22+3=48$.
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.