This question was asked in Ex 9.2, 15

a^n-1

Shivam Sahu's image