login
A037603
Decimal expansion of a(n) is given by the first n terms of the periodic sequence with initial period 1,3,0.
4
1, 13, 130, 1301, 13013, 130130, 1301301, 13013013, 130130130, 1301301301, 13013013013, 130130130130, 1301301301301, 13013013013013, 130130130130130, 1301301301301301
OFFSET
1,2
FORMULA
a(n) = 10*a(n-1) + a(n-3) - 10*a(n-4). G.f.: x*(1+3*x)/((x-1)*(10*x-1)*(1+x+x^2)). - R. J. Mathar, Aug 03 2009
MATHEMATICA
With[{mm=PadRight[{}, 18, {1, 3, 0}]}, Table[FromDigits[Take[mm, n]], {n, 18}]] (* Harvey P. Dale, Dec 13 2011 *)
PROG
(PARI) Vec(x*(1+3*x)/((x-1)*(10*x-1)*(1+x+x^2)) + O(x^25)) \\ Jinyuan Wang, Apr 14 2020
CROSSREFS
Sequence in context: A255495 A121033 A006100 * A037708 A142740 A248919
KEYWORD
nonn,base,easy
STATUS
approved