>>39
This is what
>>8 solved. There are zero possible combinations for 9 oranges in 40 bowls.
Your "first possible sequence" is illegal. Consider, for example:
1101001000100001000001000000100000001000
A B C D
A and
B are the same distance apart as
C and
D.