Answer:
5th term of sequence = -18
nth term of the sequence = -5n + 7
Explanation:
Difference between successive and previous term of the output,
= -3 - 2
= -5
Similarly,

= -5
There is a common difference 'd' = (-5)
Therefore, the sequence formed will be an arithmetic sequence.
First term of the sequence 'a' = 2
Explicit formula of an arithmetic sequence,
= a + (n - 1)d [n = input value]
= 2 + (n - 1)(-5)
= 2 - 5n + 5
= -5n + 7
5th term of this sequence,

= 2 - 20
= -18
Therefore, 5th term of sequence = -18
nth term of the sequence = -5n + 7