Clear Notion Academy

Sets, Relations and Functions (Beyond Advanced) Practice: How many one-one functions f: 1,2,3,4,5 1,2,3,4,5,6,7 satisfy f(i) i for every i…

Question

How many one-one functions f:{1,2,3,4,5}→{1,2,3,4,5,6,7}f:\{1,2,3,4,5\}\to\{1,2,3,4,5,6,7\} satisfy f(i)≠if(i)\ne i for every i∈{1,2,3,4,5}i\in\{1,2,3,4,5\}?

Answer

Answer: 1214

Hint

Use inclusion-exclusion on the set of indices ii with f(i)=if(i)=i.

Solution

Let EiE_i be the set of one-one functions with f(i)=if(i)=i. If a particular set of kk indices is forced to be fixed, the remaining 5−k5-k points map injectively into the remaining 7−k7-k values: P(7−k,5−k)P(7-k,5-k) ways. Count =∑k=05(−1)k(5k)P(7−k,5−k)=\sum_{k=0}^{5}(-1)^k\binom5k P(7-k,5-k): k=0k=0: 25202520; k=1k=1: 5⋅360=18005\cdot360=1800; k=2k=2: 10⋅60=60010\cdot60=600; k=3k=3: 10⋅12=12010\cdot12=120; k=4k=4: 5⋅3=155\cdot3=15; k=5k=5: 11. 2520−1800+600−120+15−1=12142520-1800+600-120+15-1=1214.

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

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