A381645 a(n) is the largest integer with distinct digits whose digital sum is n.
0, 10, 20, 210, 310, 410, 3210, 4210, 5210, 6210, 43210, 53210, 63210, 73210, 83210, 543210, 643210, 743210, 843210, 943210, 953210, 6543210, 7543210, 8543210, 9543210, 9643210, 9743210, 9843210, 76543210, 86543210, 96543210, 97543210, 98543210, 98643210, 98743210, 98753210, 876543210, 976543210, 986543210, 987543210, 987643210, 987653210, 987654210, 987654310, 987654320, 9876543210
Offset: 0
Examples
For n = 5, the integers with distinct digits whose digital sum is 5 are: 5, 14, 23, 32, 41, 50, 104, 140, 203, 230, 302, 320, 401 and 410, where the largest of them is 410. So, a(5) = 410.
Comments