A={1,2,3,4,5},B={1,2,3,4,5,6,7}
S={f:A→B:f(2)=2, f(4)=4}
T={f∈S:∃g:B→N, g(f(x))=2x ∀x∈A}
To find: ∣T∣
1. T={injective f}
2. count injective f:A→B
3. exclude f(2)=2, f(4)=4
f(x1)=f(x2)⇒g(f(x1))=g(f(x2))
⇒2x1=2x2⇒x1=x2
f injective⇒g(y)=2f−1(y) on f(A), else 1
g(f(x))=2x ✓
T={f:A→B injective, f(2)=2, f(4)=4}
∣{f:A→B injective}∣=7P5=7⋅6⋅5⋅4⋅3=2520
f(2)=2:6P4=6⋅5⋅4⋅3=360
f(4)=4:360
f(2)=2 and f(4)=4:5P3=5⋅4⋅3=60
∣T∣=2520−360−360+60
=1860
∣T∣=1860