The number of surjections from A=1,2....,n,n≥2 onto B=a,b is
P2 n
2n-2
2n-1
None of the these
A=1,2....,n,n≥2 B=a,bNumber of into functions from A to B = 2Total Number of functions from A to B=n(B)n(A)=2n∴Total Number of onto functions from A to B=2n-2