login
A037524
Base 7 digits are, in order, the first n terms of the periodic sequence with initial period 2,1,0.
1
2, 15, 105, 737, 5160, 36120, 252842, 1769895, 12389265, 86724857, 607074000, 4249518000, 29746626002, 208226382015, 1457584674105, 10203092718737, 71421649031160, 499951543218120, 3499660802526842
OFFSET
1,1
FORMULA
G.f.: x*(x+2) / ((x-1)*(7*x-1)*(x^2+x+1)). [Colin Barker, Jan 12 2013]
MATHEMATICA
CoefficientList[Series[(x + 2)/((x - 1) (7 x - 1) (x^2 + x + 1)), {x, 0, 30}], x] (* Vincenzo Librandi, Oct 21 2013 *)
Table[FromDigits[PadRight[{}, n, {2, 1, 0}], 7], {n, 20}] (* or *) LinearRecurrence[{7, 0, 1, -7}, {2, 15, 105, 737}, 20] (* Harvey P. Dale, Feb 28 2023 *)
CROSSREFS
Sequence in context: A215643 A332048 A295268 * A037733 A308938 A037556
KEYWORD
nonn,base,easy
STATUS
approved