See first we verify this for smaller no of processes ..Say we have 2 number of processes..So according to the question :
|| P1 || P2 || P1 || P2 ||
So since the word " inclusive " is used we have to consider all the time intervals involved here including first and last overheads(context switches)..
So here we can see we have 4 time quanta and 5 context switches..Hence for n processes , we can generalise it as :
Having 2n time quanta and (2n + 1) context switches..Hence ,
2n q + (2n + 1) s = t
==> 2n q = t - (2n + 1)s
==> q = [t - (2n + 1)s] / 2n
Hence the required time quantum is q = [t - (2n + 1)s] / 2n