only 2 process no possibility of deadlock
3 process deadlok may or may not occur (deadlock 3,3,3 rest combinations are deadlock free) this could be ans if they had asked what is the minimum possible value of n which could lead to a deadlock?
4 process again deadlock may or may not occur (deadlock 3,2,2,2 deadlock free 4,2,2,1 etc )
5 process again deadlock may or may not occur (deadlock free 4,2,1,1,1 )
and so for 6 processes deadlock may or may not occur (deadlock free 4,1,1,1,1,1)
for 7 process (3,1,1,1,1,1,1) deadlock is must so it will surely lead to deadlock hence ans should be 7
after 7 i.e for 8 ,9 etc deadlock is must so min value is 7