login
A037528
Base-3 digits are, in order, the first n terms of the periodic sequence with initial period 1,1,2.
0
1, 4, 14, 43, 130, 392, 1177, 3532, 10598, 31795, 95386, 286160, 858481, 2575444, 7726334, 23179003, 69537010, 208611032, 625833097, 1877499292, 5632497878, 16897493635, 50692480906, 152077442720, 456232328161
OFFSET
1,2
FORMULA
G.f.: x*(1+x+2*x^2) / ( (x-1)*(3*x-1)*(1+x+x^2) ). - R. J. Mathar, Apr 27 2015
A007089(a(n)) = A037535(n). - R. J. Mathar, Apr 27 2015
a(n) = 3*a(n-1)+a(n-3)-3*a(n-4). - Wesley Ivan Hurt, Apr 21 2021
MATHEMATICA
nn=30; With[{c=PadRight[{}, nn, {1, 1, 2}]}, Table[FromDigits[Take[c, n], 3], {n, nn}]] (* Harvey P. Dale, Jun 04 2012 *)
CROSSREFS
Sequence in context: A296253 A247470 A049539 * A292718 A212688 A261451
KEYWORD
nonn,base,easy
STATUS
approved