let first find the minimum number of process so that their is deadlock.
suppose each process is given 2 instance of resources(hold and wait->deadlock condition)
n*2=6
n=3(minimum no of process so that system is in deadlock)
so therefore max no of process with no deadlock=3-1=2