login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A198693
a(n) = 3*4^n-1.
7
2, 11, 47, 191, 767, 3071, 12287, 49151, 196607, 786431, 3145727, 12582911, 50331647, 201326591, 805306367, 3221225471, 12884901887, 51539607551, 206158430207, 824633720831, 3298534883327, 13194139533311, 52776558133247
OFFSET
0,1
FORMULA
a(n) = 4*a(n-1)+3.
a(n) = 5*a(n-1) - 4*a(n-2), for n > 1.
G.f.: (2+x)/((4*x-1)*(x-1)). - R. J. Mathar, Oct 30 2011
MATHEMATICA
3*4^Range[0, 30]-1 (* or *) LinearRecurrence[{5, -4}, {2, 11}, 30] (* Harvey P. Dale, Jul 04 2017 *)
PROG
(Magma) [3*4^n-1: n in [0..30]]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Oct 29 2011
STATUS
approved