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”).

A037580
Base 8 digits are, in order, the first n terms of the periodic sequence with initial period 1,3.
1
1, 11, 89, 715, 5721, 45771, 366169, 2929355, 23434841, 187478731, 1499829849, 11998638795, 95989110361, 767912882891, 6143303063129, 49146424505035, 393171396040281, 3145371168322251, 25162969346578009, 201303754772624075, 1610430038180992601
OFFSET
1,2
FORMULA
a(n) = (11*8^n+7*(-1)^n-18)/63. a(n) = 8*a(n-1)+a(n-2)-8*a(n-3). G.f.: x*(3*x+1) / ((x-1)*(x+1)*(8*x-1)). [Colin Barker, Dec 27 2012]
MATHEMATICA
CoefficientList[Series[(3 x + 1)/((x - 1) (x + 1) (8 x - 1)), {x, 0, 30}], x] (* Vincenzo Librandi, Oct 22 2013 *)
Table[FromDigits[PadRight[{}, n, {1, 3}], 8], {n, 30}] (* Harvey P. Dale, May 15 2019 *)
PROG
(Magma) [(11*8^n+7*(-1)^n-18)/63: n in [1..30]]; // Vincenzo Librandi, Oct 22 2013
CROSSREFS
Sequence in context: A201117 A081657 A226854 * A155607 A356323 A110252
KEYWORD
nonn,base,easy
EXTENSIONS
More terms from Colin Barker, Dec 27 2012
STATUS
approved