OFFSET
0,3
COMMENTS
To convert an integer to base triangle:
Write the integer as a group of ones (6 is shown below).
1 1 1 1 1 1
Iteratively redistribute the leftmost value, adding 1 to each value to its right.
2 1 1 1 1
2 2 1 1
3 2 1
Stop when the leftmost value is greater than the number of values to its right.
CROSSREFS
KEYWORD
easy,nonn,base
AUTHOR
Andrew S. Plewe, Sep 07 2005
STATUS
approved