\[a_{1} = 38;\ \ d = - 3:\]
\[a_{40} = a_{1} + 39d = 38 - 3 \cdot 39 =\]
\[= 38 - 117 = - 79.\]
\[Ответ:a_{40} = - 79.\]