OFFSET
1,1
COMMENTS
It appears that all terms of this sequence are also terms of A173951.
Also, it appears that a(n) has the base-3 representation 1,0,2^(2n-2),1,2 where 2^k denotes k consecutive 2's.
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..400
Index entries for linear recurrences with constant coefficients, signature (10, -9).
FORMULA
From R. J. Mathar, Mar 04 2010: (Start)
a(n) = 4*(9^n-1) = 4*A024101(n) = 10*a(n-1) - 9*a(n-2).
G.f.: 32*x/ ((9*x-1) * (x-1)). (End)
MATHEMATICA
NestList[9#+32&, 32, 20] (* Harvey P. Dale, May 27 2012 *)
PROG
(Magma) [4*(9^n-1): n in [1..20]]; // Vincenzo Librandi, Jul 05 2011
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
John W. Layman, Mar 03 2010
STATUS
approved