Answer:
A = 8, C = 2 => T = 33
A=100, C = 2 => T = 401
A = any, C = 2 => T = 4A + 1
A = 8, C = 4 => T = 37
As long as the boat can carry one adult or one or two children, the following equation should solve the problem.
T = 4A + 2(C-2) + 1
Explanation:
To transfer one adult, 4 one-way trips need to be made as follows:
1. Two children cross the river
2. One of them takes the boat back to the other side
3. One adult crosses the river
4. The other child takes the boat back
These four steps are repeated until all adults are crossed. At this point no children has crossed yet.
Then for every 2 children except the last 2, 2 one-way trips need to be made if the number of children is greater than 2:
1. Two children cross
2. One takes the boat back
For the last 2,only one trip needs to be made.
A = number of adults
C = number of children >= 2
T = total trips
T = 4A + 2(C-2) + 1