Write an equation for the nth term of each geometric sequence:
5, 10, 20, 40,​