login
A198851
a(n) = 3*8^n-1.
1
2, 23, 191, 1535, 12287, 98303, 786431, 6291455, 50331647, 402653183, 3221225471, 25769803775, 206158430207, 1649267441663, 13194139533311, 105553116266495, 844424930131967, 6755399441055743, 54043195528445951
OFFSET
0,1
FORMULA
a(n) = 8*a(n-1)+7. a(n) = 9*a(n-1)-8*a(n-2) for n > 1.
G.f.: (5*x+2)/(8*x^2-9*x+1) [Harvey P. Dale, Dec 07 2011]
MATHEMATICA
3*8^Range[0, 30]-1 (* or *) LinearRecurrence[{9, -8}, {2, 23}, 30] (* Harvey P. Dale, Dec 07 2011 *)
PROG
(Magma) [3*8^n-1: n in [0..30]]
CROSSREFS
Sequence in context: A130547 A352355 A200846 * A173341 A118756 A133955
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Oct 31 2011
STATUS
approved