Let S be any integer in the range 6 <= S <= 24. Sequence has the property that a(n)*S is the sum of all positive integers whose decimal expansion has <= n digits and contains at most three distinct nonzero digits d1, d2, d3 such that d1+d2+d3 = S.

A328350

Let S be any integer in the range 6 <= S <= 24. Sequence has the property that a(n)*S is the sum of all positive integers whose decimal expansion has <= n digits and contains at most three distinct nonzero digits d1, d2, d3 such that d1+d2+d3 = S.

Terms

    a(0) =0a(1) =1a(2) =34a(3) =1033a(4) =31030a(5) =931021a(6) =27930994a(7) =837930913a(8) =25137930670a(9) =754137929941

External references