OFFSET
0,2
COMMENTS
Also squares that can be expressed as the sum of two powers of three (3^x + 3^y), except a(0). - Karl-Heinz Hofmann, Sep 03 2022
LINKS
Colin Barker, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (9).
FORMULA
G.f.: (1-5*x)/(1-9*x).
a(n) = 9*a(n-1) for n>1.
a(n) = 4*9^(n-1) for n>0.
E.g.f.: (4*exp(9*x) + 5)/9. - Stefano Spezia, Jul 09 2024
MATHEMATICA
Join[{1}, NestList[9#&, 4, 20]] (* Harvey P. Dale, Oct 23 2022 *)
PROG
(PARI) Vec((1-5*x)/(1-9*x) + O(x^30))
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Colin Barker, Mar 17 2016
STATUS
approved