login
A140788
a(n) = 6*4^n + 2.
2
8, 26, 98, 386, 1538, 6146, 24578, 98306, 393218, 1572866, 6291458, 25165826, 100663298, 402653186, 1610612738, 6442450946, 25769803778, 103079215106, 412316860418, 1649267441666, 6597069766658, 26388279066626
OFFSET
0,1
COMMENTS
Also 2*A140660.
FORMULA
From R. J. Mathar, Feb 07 2009: (Start)
a(n) = 5*a(n-1) - 4*a(n-2).
G.f.: 2(4-7x)/((1-x)(1-4x)). (End)
MATHEMATICA
6*4^Range[0, 30]+2 (* or *) LinearRecurrence[{5, -4}, {8, 26}, 30] (* Harvey P. Dale, Apr 15 2019 *)
PROG
(Magma) [6*4^n+2: n in [0..30]]; // Vincenzo Librandi, Aug 08 2011
CROSSREFS
Sequence in context: A357593 A173365 A261971 * A082573 A112645 A220713
KEYWORD
nonn,easy
AUTHOR
Paul Curtz, Jul 14 2008
EXTENSIONS
More terms from R. J. Mathar, Feb 07 2009
STATUS
approved