login
A048339
a(n) in base 15 is a repdigit.
2
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 16, 32, 48, 64, 80, 96, 112, 128, 144, 160, 176, 192, 208, 224, 241, 482, 723, 964, 1205, 1446, 1687, 1928, 2169, 2410, 2651, 2892, 3133, 3374, 3616, 7232, 10848, 14464, 18080, 21696, 25312, 28928, 32544
OFFSET
0,3
LINKS
Eric Weisstein's World of Mathematics, Repdigit
FORMULA
From Chai Wah Wu, May 30 2016: (Start)
a(n) = 16*a(n-14) - 15*a(n-28) for n > 27.
G.f.: x*(14*x^13 + 13*x^12 + 12*x^11 + 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)/(15*x^28 - 16*x^14 + 1). (End)
a(n) = (n - 14*floor((n-1)/14))*(15^floor((n+13)/14) - 1)/14. - Ilya Gutkovskiy, May 30 2016
MATHEMATICA
Union[Flatten[Table[FromDigits[PadRight[{}, n, d], 15], {n, 0, 5}, {d, 14}]]] (* Harvey P. Dale, Feb 05 2014 *)
PROG
(Python)
A048339_list = [0] + [int(d*l, 15) for l in range(1, 10) for d in '123456789abcde'] # Chai Wah Wu, May 30 2016
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Patrick De Geest, Feb 15 1999
STATUS
approved