Option (A) is correct.
Explanation: Each way of setting the chairs is an array of 40. The arrays of 40 are:
1×40,2×20,4×10,5×8
8×5,10×4,20×2,40×1
So the number of rows can be any factor of 40: 1, 2, 4, 5, 8, 10, 20 or 40.
1 row is not allowed (he needs at least 2 rows). 40 rows is not allowed either (that is only 1 chair in each row).
That leaves 2, 4, 5, 8, 10 or 20 rows. So he can choose from 6 different numbers of rows.
Why the other options are wrong
- (B) 8 counts every factor of 40, including 1 row and 40 rows, which break Mr Iyer's rules.
- (C) 3 counts 2 rows of 20 and 20 rows of 2 as the same choice. They are different: one has 2 rows, the other has 20 rows.
- (D) 4 stops at 8 rows (2, 4, 5, 8) and forgets 10 rows of 4 and 20 rows of 2.