login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A037782
Base 7 digits are, in order, the first n terms of the periodic sequence with initial period 3,1,2,0.
1
3, 22, 156, 1092, 7647, 53530, 374712, 2622984, 18360891, 128526238, 899683668, 6297785676, 44084499735, 308591498146, 2160140487024, 15120983409168, 105846883864179, 740928187049254, 5186497309344780
OFFSET
1,1
FORMULA
a(n) = 7a(n-1) + a(n-4) - 7a(n-5).
G.f.: x*(3+x+2*x^2) / ( (x-1)*(7*x-1)*(1+x)*(x^2+1) ). - R. J. Mathar, May 01 2015
MATHEMATICA
Table[FromDigits[PadRight[{}, n, {3, 1, 2, 0}], 7], {n, 20}] (* Harvey P. Dale, Apr 01 2018 *)
CROSSREFS
Sequence in context: A037775 A037663 A091167 * A041661 A037586 A183259
KEYWORD
nonn,base,easy
STATUS
approved