login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A048336
a(n) in base 12 is a repdigit.
2
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 26, 39, 52, 65, 78, 91, 104, 117, 130, 143, 157, 314, 471, 628, 785, 942, 1099, 1256, 1413, 1570, 1727, 1885, 3770, 5655, 7540, 9425, 11310, 13195, 15080, 16965, 18850, 20735, 22621, 45242, 67863, 90484, 113105
OFFSET
0,3
LINKS
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