TL;DR
The general formula for fewest trips is:
$4n-3$
Giving values for (a), (b), (c):
(a) 13
(b) 17
(c) 397
The possible combinations for the first trip are: MM, MP, PP, M, P. We can immediately discount a first trip carrying an individual as the return trip would need to be made by that individual, causing no change to the number of beings on the second shore and therefore unnecessarily increasing the number of trips.
It follows that exactly 2 beings must occupy the first trip and exactly 1 of these beings must be on the return trip, leaving 1 being on the second shore.
Case MM:
Upon boarding the boat, the second inequality is true:
$M_{shore2}+M_{boat}>P_{shore2}+P_{boat}$
$0+2 > 0+0$
This contradicts the condition that "At no point on time may either of these be true".
$\therefore$ MM is not a valid first trip.
Case PP:
Upon disembarking the boat, the first inequality is true:
$M_{shore1}+M_{boat}>P_{shore1}+P_{boat}$
$n+0 > n-2+1$
This contradicts the condition that "At no point on time may either of these be true".
$\therefore$ PP is not a valid first trip.
Case MP:
Upon reaching the second shore, P may choose to disembark. This makes the first inequality true:
$M_{shore1}+M_{boat}>P_{shore1}+P_{boat}$
$n-1+1>n-1+0$
$\therefore$ P may not disembark on this trip.
Suppose then that M disembarks. This satisfies the condition.
$M_{shore1}+M_{boat} \le P_{shore1}+P_{boat}$
$n-1+0 \le n-1+1 \implies n-1 \le n$
$M_{shore2}+M_{boat} \le P_{shore2}+P_{boat}$
$1+0 \le 0+1 \implies 1 \le 1$
With this knowledge, we can deduce that the second trip to shore 2 must also have at least one P in the boat.
Case MP:
Upon boarding the boat, the second inequality is true.
$M_{shore2}+M_{boat} > P_{shore2}+P_{boat}$
$1+1 > 0+1$
$\therefore$ because this contradicts the rule, we know MP is an invalid second trip.
Case PP:
This satisfies the condition.
$M_{shore1}+M_{boat} \le P_{shore1}+P_{boat}$
$n-1+0 \le n-2+1 \implies n-1 \le n-1$
$M_{shore2}+M_{boat} \le P_{shore2}+P_{boat}$
$1+0 \le 1+1 \implies 1 \le 2$
We can extend this logic to arbitrary $M_{shore2} = k$.
P must be on the boat, leaving us two possibilities: $P_{shore2} \in \{k-1, k\}$
Case $P_{shore2} = k$:
M boards the boat piloted by P for the trip to shore 2.
In transit:
Shore 1: $(n-k-1) + (1) \le (n-k) + (1)$
Shore 2: $(k) + (1) \le (k) + (1)$
Once landing and M disembarks:
Shore 1: $(n-k-1) + (0) \le (n-k) + (1)$
Shore 2: $(k+1) + (0) \le (k) + (1)$
If this is the last trip, P also disembarks (just make sure to get off the boat after M).
Case $P_{shore2} = k-1$:
P boards the boat piloted by P for the trip to shore 2.
In transit:
Shore 1: $(n-k) + (0) \le (n-(k-1)-1) + (2)$
Shore 2: $(k) + (0) \le (k-1) + (2)$
Once landing and P disembarks:
Shore 1: $(n-k) + (0) \le (n-(k-1)-1) + (1)$
Shore 2: $(k) + (0) \le (k-1+1) + (1)$
If this is the last trip, the second P also disembarks.
The total number of trips to shore 2 are:
$2n-1$
Since we are only letting off one being per trip, we need to take $2n$ trips. Subtract $1$ because the last trip lets off two beings.
The total number of trips returning to shore 1 are:
$2n-2$
We make the same number of return trips as we made initial trips, less one because we don't make a final return.
This gives us a total number of trips as:
$2n-1 + 2n-2$
$= 4n-3$
This is optimal because it takes 2 beings on the trip to shore 2 and returns with only 1 being. In order to reduce the number of trips, the boat would need to carry more than 2 beings or the return trip would need to be made with nobody in the boat.