Clear Notion Academy

Sets, Relations and Functions (Beyond Advanced) Practice: Find the number of onto functions f: 1,2,3,4,5,6,7 a,b,c,d satisfying f(1)=f(2) and f(3)…

Question

Find the number of onto functions f:{1,2,3,4,5,6,7}→{a,b,c,d}f:\{1,2,3,4,5,6,7\}\to\{a,b,c,d\} satisfying f(1)=f(2)f(1)=f(2) and f(3)≠f(4)f(3)\ne f(4).

Answer

Answer: 1320

Hint

Because f(1)=f(2)f(1)=f(2), the points 11 and 22 behave as a single object. Count onto functions on the remaining objects and remove those violating f(3)≠f(4)f(3)\ne f(4).

Solution

Merge 11 and 22 into one object: functions with f(1)=f(2)f(1)=f(2) correspond to functions on the 66 objects {[12],3,4,5,6,7}\{[12],3,4,5,6,7\}, and onto-ness is unchanged. Onto functions from a 66-set to a 44-set: 4! S(6,4)=24⋅65=15604!\,S(6,4)=24\cdot65=1560 (check: 46−4⋅36+6⋅26−4=4096−2916+384−4=15604^6-4\cdot3^6+6\cdot2^6-4=4096-2916+384-4=1560). Those with f(3)=f(4)f(3)=f(4): merge 3,43,4 too, giving onto functions from a 55-set to a 44-set: 4! S(5,4)=24⋅10=2404!\,S(5,4)=24\cdot10=240. Required number =1560−240=1320=1560-240=1320.

More questions from Sets, Relations and Functions (Beyond Advanced) Practice

Practise the full set: Sets, Relations and Functions — Beyond Advanced