Explanation:
If a 6-digit number is formed only by using 0, 1, 2, 3, 4 and 5 (each once), then every digit is used once as six digits are given.
Since the number is 6-digit so 0 should not be at starting place.
and the number is divisible by 6, so it is divisible by 2 and 3.
So only even digit {0,2,4} occur at last place for divisible by 2.
And the number always contains the digits 0,1,2,3,4,5 once, so sum of digits = 15, so such a number will always be divisible by 3.
Case 1: The number ends with 0.
Number of choices for first place = 5
And for second, third, fourth and fifth number of choices will be 4, 3, 2, and 1 respectively.
So, the number of 6 digit numbers which are ending with 0 with given conditions = 5 × 4 × 3 × 2 × 1 = 120
Case 2: The number ends with 2.
Number of choices for first place = 4 {excluding 2 and 0}
And for second, third, fourth and fifth number of choices will be 4, 3, 2, and 1 respectively.
So, the number of 6 digit numbers which are ending with 0 with given conditions = 4 × 4 × 3 × 2 × 1 = 96
Case 3: The number ends with 4.
Number of choices for first place = 4 {excluding 4 and 0}
And for second, third, fourth and fifth number of choices will be 4, 3, 2, and 1 respectively.
So, the number of 6 digit numbers which are ending with 0 with given conditions = 4 × 4 × 3 × 2 × 1 = 96
So total number of ways = 120 + 96 + 96 = 312
∴ The correct option is (4).