login
A199110
a(n) = 7*3^n+1.
1
8, 22, 64, 190, 568, 1702, 5104, 15310, 45928, 137782, 413344, 1240030, 3720088, 11160262, 33480784, 100442350, 301327048, 903981142, 2711943424, 8135830270, 24407490808, 73222472422, 219667417264, 659002251790, 1977006755368, 5931020266102
OFFSET
0,1
FORMULA
a(n) = 3*a(n-1)-2.
a(n) = 4*a(n-1)-3*a(n-2).
G.f.: 2*(4-5*x)/((1-x)*(1-3*x)). a(n) = 2*A199109(n). - Bruno Berselli, Nov 03 2011
PROG
(Magma) [7*3^n+1: n in [0..30]];
(Python)
def a(n): return 7*3**n + 1
print([a(n) for n in range(26)]) # Michael S. Branicky, Aug 22 2021
CROSSREFS
Sequence in context: A126362 A140418 A200081 * A083098 A322070 A033456
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Nov 03 2011
STATUS
approved