As NH3 is more easily liquefiable (due to hydrogen bonding), intermolecular forces of attraction are stronger then in N2. Hence, NH3 will have greater value of ‘a’.
As NH3 molecule is larger in size than N2, hence NH3 will have greater value for ‘b’.
(For NH3, a = 4.17 L2 atm mol-2, b = 0.0371 L mol-1
For N2, a = 1.39 L2 atm mol-2, b = 0.0319 L mol-1)