Between 3 and 18, with 4 middle numbers, what is the 3rd middle number?

Between 3 and 18, with 4 middle numbers, what is the 3rd middle number?

Explanation

This looks like an arithmetic sequence problem.
If the first term
a = 3
and last term
l = 18
, and there are 4 numbers in between, the total terms (3 + 4 + 18).

The terms:
a1=3a_1 = 3
a6=18a_6 = 18
Number of terms n=6n = 6

Common difference d=18361=155=3d = frac{18 - 3}{6 - 1} = frac{15}{5} = 3

The 3rd middle number is the 4th term:
a4=a1+3d=3+3×3=12