OFFSET
1,2
LINKS
Index entries for linear recurrences with constant coefficients, signature (5,0,1,-5).
FORMULA
a(n) = 5*a(n-1) + a(n-3) - 5*a(n-4).
a(n) = floor( (15/62)*5^n ). - Tani Akinari, Jul 16 2014
G.f.: x*(x+1) / ((x-1)*(5*x-1)*(x^2+x+1)). - Colin Barker, Jul 17 2014
EXAMPLE
The first six terms have base 5 representations 1, 11, 110, 1101, 11011, 110110.
MATHEMATICA
Table[FromDigits[PadRight[{}, n, {1, 1, 0}], 5], {n, 30}] (* Harvey P. Dale, Sep 06 2015 *)
PROG
(PARI) Vec(x*(x+1)/((x-1)*(5*x-1)*(x^2+x+1)) + O(x^100)) \\ Colin Barker, Jul 17 2014
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
STATUS
approved