OFFSET
0,3
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000
Eric Weisstein's World of Mathematics, Repdigit
FORMULA
From Chai Wah Wu, May 30 2016: (Start)
a(n) = 13*a(n-11) - 12*a(n-22) for n > 21.
G.f.: x*(11*x^10 + 10*x^9 + 9*x^8 + 8*x^7 + 7*x^6 + 6*x^5 + 5*x^4 + 4*x^3 + 3*x^2 + 2*x + 1)/(12*x^22 - 13*x^11 + 1). (End)
a(n) = (n - 11*floor((n-1)/11))*(12^floor((n+10)/11) - 1)/11. - Ilya Gutkovskiy, May 30 2016
MATHEMATICA
Join[{0}, Sort[Flatten[Table[FromDigits[Table[n, {i}], 12], {n, 11}, {i, 99}]]]] (* Harvey P. Dale, May 01 2013 *)
PROG
(Python)
A048336_list = [0] + [int(d*l, 12) for l in range(1, 10) for d in '123456789ab'] # Chai Wah Wu, May 30 2016
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Patrick De Geest, Feb 15 1999
STATUS
approved