OFFSET
1,1
COMMENTS
The sequence is divisible by 9 and contains 208 terms. The first term is 45 = 9+8+...+1, the last term is 98765432+1 = 98765433.
The decomposition is not unique, for example 126= 98+7+6+5+4+3+2+1 = 9+8+76+5+4+3+21.
LINKS
Michel Lagneau, Table of n, a(n) for n = 1..208
EXAMPLE
666 = 9+87+6+543+21.
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, 9) minus {987654321})[]])[]; # Alois P. Heinz, May 09 2014
CROSSREFS
KEYWORD
nonn,base,fini,full
AUTHOR
Michel Lagneau, May 09 2014
STATUS
approved