(i) The number of ways in which at least two of them are in the wrong envelopes
=6∑r=2nCn−rDr
= nCn−2D2+ nCn−3D3+ nCn−4D4+ nCn−5D5+ nCn−6D6
Here n=6
= 6C4.2!(1−11!+12!)+ 6C3.3!(1−11!+12!−13!)
+ 6C2.4!(1−11!+12!−13!+14!)
+ 6C1.5!(1−11!+12!−13!+14!−15!)
+ 6C0.6!(1−11!+12!−13!+14!−15!+16!)
=15+40+135+264+265
=719