First assume ideal behavior.
n=PVRT
n=15atm×10L0.08206Latm/molK×624K
n=2.9 moles.
Now assume non ideal behavior.
(P+an2V2)(V−nb)=nRT
Neglect nb as V(10L)>>>b(0.0564L/mol)
(P+an2V2)V=nRT
(15atm+6.71atmL−2mol−2×n2(10L)2)×10L=n×0.08206Latm/molK×624K
150+0.671n2=51.2n
0.671n2−51.2n+150=0
This is the quadratic equation with solutions
n=−b±√b2−4ac2a
n=−(−51.2)±√(−51.2)2−4(0.671)×1502(0.671)
n=51.2±47.11.342
n=3.05 or n=73.25
The value 73.25 is discarded as it is significantly different from the value obtained from ideal behavior.
Hence, n=3.05