OFFSET
0,3
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (1,0,0,0,1,-1).
FORMULA
G.f.: (x^5+6*x^4+x^3+x^2+x)/(x^6-x^5-x+1). - Alois P. Heinz, Feb 07 2014
MATHEMATICA
CoefficientList[Series[(x^5 + 6 x^4 + x^3 + x^2 + x)/(x^6 - x^5 - x + 1), {x, 0, 50}], x] (* Vincenzo Librandi, Feb 08 2014 *)
nxt[n_]:=If[Mod[n, 10]==3, FromDigits[Join[Most[IntegerDigits[n]], {9}]], n+ 1]; NestList[nxt, 0, 70] (* or *) LinearRecurrence[{1, 0, 0, 0, 1, -1}, {0, 1, 2, 3, 9, 10}, 70] (* Harvey P. Dale, Oct 02 2016 *)
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Vincenzo Librandi, Feb 06 2014
EXTENSIONS
Definition by N. J. A. Sloane, Feb 07 2014
STATUS
approved