Three consecutive terms of a geometric progression are given as n-2, n and n+3. Find…