When calculating the probability of selecting an onto function, use the principle of inclusion-exclusion. First, calculate the total number of functions, then subtract the cases where the function is not onto, and finally divide by the total number of functions to find the probability.
You are given a dipole of charge \( +q \) and \( -q \) separated by a distance \( 2l \). A sphere 'A' of radius \( R \) passes through the centre of the dipole as shown below and another sphere 'B' of radius \( 2R \) passes through the charge \( +q \). Then the electric flux through the sphere A is