I assume by smallest number, you're really looking for the smallest *positive* number.
Notice that -5 fits all these requirements:
Any number of the form
will also satisfy these conditions, where
and
is the least common multiple of the moduli. You have
so the least positive number would be achieved with
, giving 3595 as the answer. (Verified with a script.)
First you will make the batches (8) in a fraction being 8/1, then you will take each 5/6 cups that are needed for the batches and multiply, 8/1*5/6= 40/6 ≈ 6.67 cups.
927492749271838383819378371746826482
Start at 3 go up 2 to the right 1