Q.

The number of seven digit positive integers formed using the digits 1, 2, 3 and 4 only and sum of the digits equal to 12 is __________ .     [2023]


Ans.

(413)

Case 1: 1111143

Number of ways = 7!5!=42                    [Since, 1 repeats five times]

Case 2: 1111332

Number of ways = 7!4!2!=105             [Since, 1 repeats 4 times and 3 repeats 2 times]

Case 3: 2223111

Number of ways =  7!3!3!=140            [Since, 2 repeats 3 times and 1 repeats 3 times]

Case 4: 2222211

Number of ways = 7!5!2!=21                [Since, 2 repeats 5 times and 1 repeats 2 times]

Case 5: 1111422

Number of ways = 7!4!2!=105              [Since, 1 repeats 4 times and 2 repeats 2 times]

   Total number of ways=42+105+140+21+105=413