OFFSET
1,1
COMMENTS
The sequence is divisible by 9 and contains 368 terms. The first term is 45 = 9 + 8 + ... + 1 + 0; the last two terms are 876543219 = 9 + 876543210 and 987654321 = 987654321 + 0.
The decomposition is not unique.
LINKS
Michel Lagneau, Table of n, a(n) for n = 1..368
EXAMPLE
540 is in the sequence because 540 = 9 + 8 + 76 + 5 + 432 + 10.
MAPLE
g:= proc(i, j) option remember;
`if`(i=j, {10-i}, {parse(cat(seq(10-h, h=i..j))),
seq(seq(seq(x+y, y=g(h+1, j)), x=g(i, h)), h=i..j-1)})
end:
sort([(g(1, 10) minus {9876543210})[]])[]; # program after Alois P. Heinz, May 09 2014, adapted for this sequence. See A242263.
CROSSREFS
KEYWORD
nonn,base,fini,full
AUTHOR
Michel Lagneau, May 10 2014
STATUS
approved