Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
A102303
a(n) = (1/6) * (7^(n+1) - 3*(-1)^n + 2).
1
1, 9, 57, 401, 2801, 19609, 137257, 960801, 6725601, 47079209, 329554457, 2306881201, 16148168401, 113037178809, 791260251657, 5538821761601, 38771752331201, 271402266318409, 1899815864228857, 13298711049602001, 93090977347214001, 651636841430498009
OFFSET
0,2
FORMULA
From Chai Wah Wu, Mar 11 2021: (Start)
a(n) = 7*a(n-1) + a(n-2) - 7*a(n-3) for n > 2.
G.f.: -(1 + 2*x - 7*x^2)/((1 - x)*(1 + x)*(1 - 7*x)). (End)
From G. C. Greubel, Feb 03 2024: (Start)
a(n) = A023000(n+1) + A000035(n).
E.g.f.: (1/6)*(-3*exp(-x) + 2*exp(x) + 7*exp(7*x)). (End)
MATHEMATICA
Table[(7^(n+1) -3*(-1)^n +2)/6, {n, 0, 50}]
PROG
(Magma) [(7^(n+1)-3*(-1)^n+2)/6: n in [0..50]]; // G. C. Greubel, Feb 03 2024
(SageMath) [(7^(n+1)-3*(-1)^n+2)/6 for n in range(51)] # G. C. Greubel, Feb 03 2024
CROSSREFS
Sequence in context: A180028 A155605 A199485 * A231310 A009060 A112616
KEYWORD
nonn,easy
AUTHOR
Roger L. Bagula, Mar 15 2005
EXTENSIONS
Edited by N. J. A. Sloane, May 29 2007
STATUS
approved