Please help me with this problem

======================================
Work Shown:
The rule is to start with the first term (a1 = 3), then double that and subtract off 1 to get the next term.
Keep doing the "double the value and subtract 1" process to generate as many terms as you want.
------------
a1 = first term = 3
a2 = second term
a2 = 2*a1 - 1 .... double the previous term, subtract 1
a2 = 2*3 - 1
a2 = 6 - 1
a2 = 5
The second term is 5
------------
a3 = third term
a3 = 2*a2 - 1
a3 = 2*5 - 1
a3 = 10 - 1
a3 = 9
The third term is 9
------------
a4 = fourth term
a4 = 2*a3 - 1
a4 = 2*9 - 1
a4 = 18 - 1
a4 = 17
The fourth term is 17
------------
The first four terms of this recursive sequence is: 3, 5, 9, 17