Question 1168274
<pre>
I wrote a program in LibertyBasic using the given recursion formula
and greenestamps' general formula.  Here is the LibertyBasic progrem:

  for n=1 to 50
  if n=1 then a=3: goto 1
  a=2*a+5
1 print n, a, 2^(n+2)-5
  next

They are identical, as you can see from the complete output below.  However, the
50th term does not agree with greenestamps' 50th term.  He made a slight
calculator error and got the 51st term by calculating 2^53-5 instead of 2^52-5.

              2a(n-1)-5
              a(1)=3                      a(n)=2<sup>n+2</sup>-5                                                   
1             3                           3
2             11                          11
3             27                          27
4             59                          59
5             123                         123
6             251                         251
7             507                         507
8             1019                        1019
9             2043                        2043
10            4091                        4091
11            8187                        8187
12            16379                       16379
13            32763                       32763
14            65531                       65531
15            131067                      131067
16            262139                      262139
17            524283                      524283
18            1048571                     1048571
19            2097147                     2097147
20            4194299                     4194299
21            8388603                     8388603
22            16777211                    16777211
23            33554427                    33554427
24            67108859                    67108859
25            134217723                   134217723
26            268435451                   268435451
27            536870907                   536870907
28            1073741819                  1073741819
29            2147483643                  2147483643
30            4294967291                  4294967291
31            8589934587                  8589934587
32            17179869179                 17179869179
33            34359738363                 34359738363
34            68719476731                 68719476731
35            137438953467                137438953467
36            274877906939                274877906939
37            549755813883                549755813883
38            1099511627771               1099511627771
39            2199023255547               2199023255547
40            4398046511099               4398046511099
41            8796093022203               8796093022203
42            17592186044411              17592186044411
43            35184372088827              35184372088827
44            70368744177659              70368744177659
45            140737488355323             140737488355323
46            281474976710651             281474976710651
47            562949953421307             562949953421307
48            1125899906842619            1125899906842619
49            2251799813685243            2251799813685243
50            4503599627370491            4503599627370491

Edwin</pre>