OFFSET
0,2
COMMENTS
Numbers whose base-16 representation consists entirely of 12's; 12 times base-16 repunits. - Franklin T. Adams-Watters, Mar 29 2006
LINKS
Colin Barker, Table of n, a(n) for n = 0..800
Index entries for linear recurrences with constant coefficients, signature (17,-16).
FORMULA
a(n) = 12*(16^n - 1)/15. - Franklin T. Adams-Watters, Mar 29 2006
From Colin Barker, Dec 06 2015: (Start)
a(n) = 17*a(n-1) - 16*a(n-2) for n > 1.
G.f.: 12*x/((1-x)*(1-16*x)). (End)
a(n) = 4*A182512(n). - Jamie Simpson, Oct 25 2022
a(n) = 12*A131865(n-1) for n>0. - Hugo Pfoertner, Nov 01 2022
From Elmo R. Oliveira, Sep 18 2025: (Start)
E.g.f.: 4*exp(x)*(exp(15*x) - 1)/5.
a(n) = 3*A141032(n). (End)
EXAMPLE
a(3) = 3276 because 3276 written in base 2 is the digit string "1100" written three times: 110011001100.
MATHEMATICA
Table[ FromDigits[ Flatten[ Table[{1, 1, 0, 0}, {i, n}]], 2], {n, 0, 16}] (* Robert G. Wilson v, Jun 01 2005 *)
Table[FromDigits[PadRight[{}, 4n, {1, 1, 0, 0}], 2], {n, 0, 20}] (* Harvey P. Dale, Aug 12 2012 *)
PROG
(PARI) concat(0, Vec(12*x/((1-x)*(1-16*x)) + O(x^100))) \\ Colin Barker, Dec 06 2015
(PARI) a(n)=12*(16^n - 1)/15 \\ Charles R Greathouse IV, Nov 01 2022
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Alexandre Wajnberg, May 31 2005
EXTENSIONS
More terms from Robert G. Wilson v, Jun 01 2005
STATUS
approved
