This question was asked in Example 1
How to find nth term

Diksha Mishra's image