The correct option is C (n−1)24
In order to solve this question, we must observe the number of ways in which we can select the first term of the required A.P. for different values of the common difference(r) starting from r=1 given that there are only 3 terms before n.
For r=1, the number of ways in which we can select the first term of the A.P. =n−2
For r=2, the number of ways to select the first term =n−4
For r=3, the number of ways to select the first term =n−6
Now we see a pattern emerging, we also realize from this that r<=n−12 for an A.P. with 3 terms to exist in the given interval.
∴ The final answer =n−2+n−4+n−6+...+5+3+1
Now we use the formula to find the sum of an A.P. which is Sn=n2[a1+an]
∴ Answer =n−14[1+n−2]=(n−1)24