I have this question:

There are three types of robot.

i.) Robot A can recycle 16 used bottles - There are 20 Robot As.

ii.) Robot B can recycle 32 used bottles - There are 32 robots B.

iii.) Robot C can recycle 128 used bottles - There are 128 robots C.

I need to calculate the minimum number of robots that are needed to recycle n bottles and print out this number.

So I have decided to use a separate method to call to print out this number:

```
public class Q7 {

    public static void main(String[] args) {

        recycleBottles(16);

    }

    public static void recycleBottles(int n) {

        final int noOfAntrimRobots = 20;
        final int noOfBelfastRobots = 10;
        final int noOfCarrickfergusRobots = 3;

        final int antrimRobotCapacity = 16;
        final int belfastRobotCapacity = 32;
        final int carrickfergusRobotCapacity = 128;

        if (n % antrimRobotCapacity == 0 && n / antrimRobotCapacity <= noOfAntrimRobots) {  // TO check if the bottles if completely divisible by Antrim robots and then print out the number of bottles
            System.out.print("Number of Antrim Robots required: " + (n / antrimRobotCapacity));
        } else if (n % belfastRobotCapacity == 0 && n / belfastRobotCapacity <= noOfBelfastRobots) {
            System.out.print("Number of Belfast Robots required: " + (n / belfastRobotCapacity)); // TO check if the bottles if completely divisible by Belfast robots and then print out the number of bottles
        } else if (n % carrickfergusRobotCapacity == 0 && n / carrickfergusRobotCapacity <= noOfCarrickfergusRobots) { // TO check if the bottles if completely divisible by Carrick Fergus robots and then print out the number of bottles
            System.out.print("Number of Carrick Fergus Robots required: " + (n / carrickfergusRobotCapacity));
        } else {

        if (n > 128) {
            int resultNum = 0;

            while (n/128 < 4) {
                resultNum = resultNum + (n/128);
            }

        }

        }

    }

}

```

I'm stuck on the part where the number is not a multiple of 16, 32 or 128. So far I'm trying to see if bottles are more than 128, then to check if no. of robot for 128 is not more than 3 and then deduct the amount of bottles, to just proceed with other robots.

I'm really stuck in this stage and I'd really help if someone can give me a kickstart at this stage. I've spent hours figuring out but it's been of no avail. I just need a clue to go further.