OFFSET
0,3
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..500
Index entries for linear recurrences with constant coefficients, signature (0,6643,0,-538083,0,531441).
FORMULA
a(n) = ((3^n - 1)*(3^n + 1))^2 / 2^(7 - (n mod 2)).
a(n) = 6643*a(n-2) - 538083*a(n-4) + 531441*a(n-6). - R. J. Mathar, Dec 04 2008
MATHEMATICA
Table[(9^n-1)^2/2^(7-Mod[n, 2]), {n, 0, 30}]
PROG
(Magma) 2^((n mod 2) -7)*(9^n-1)^2: n in [0..40]]; // G. C. Greubel, May 22 2023
(SageMath) [(9^n-1)^2//2^(7-(n%2)) for n in range(41)] # G. C. Greubel, May 22 2023
CROSSREFS
KEYWORD
nonn
AUTHOR
Roger L. Bagula, Dec 01 2008
STATUS
approved