reviewed
approved
reviewed
approved
proposed
reviewed
editing
proposed
(Python)
def a(n):
s = "".join(sorted("".join(map(str, range((n-1)*n//2+1, n*(n+1)//2+1)))))
return int("".join(sorted(s, reverse=True)))
print([a(n) for n in range(1, 15)]) # Michael S. Branicky, Jan 23 2021
approved
editing
editing
approved
Harvey P. Dale, <a href="/A080480/b080480.txt">Table of n, a(n) for n = 1..200</a>
approved
editing
editing
approved
1, 32, 654, 98710, 5432111111, 987622111110, 87654322222222, 9654333333332210, 987544444443333210, 98765555555444443210, 9876666666665555543210, 988777777777776666543210, 99998888888888877654321100, 9999999998765544332211111110000000
FromDigits[Sort[Flatten[IntegerDigits/@#], Greater]]&/@Table[ Reverse[ Range[ (n(n+1))/2+1, ((n+1)(n+2))/2]], {n, 0, 15}] (* Harvey P. Dale, May 13 2017 *)
More terms from Harvey P. Dale, May 13 2017
approved
editing
_Amarnath Murthy (amarnath_murthy(AT)yahoo.com), _, Mar 11 2003