I would say omega=sqrt(m/k). When the two modes move away from each other, the combined mode is a resonance. When the modes are approaching each other, the combined mode is cancellation. So the frequency of the combined mode is sqrt[(m1^2/k1^2+m2^2/k2^2). Now (M-lamda *K)=(dx/dt). Resonance occurs when dx/dt-->infinity. When dx/dt-->infinity, k1*k2-->zero. So you adjust the stiffness of the upper floor and lower floor to avoid resonance. But according to F=Kx, x would be K^-1*F. Now x=K^-1Ma^-1, v=(K/M) Assuming K is constant, you adjust the mass of the lower and upper floor beams, the stiffness of the mass and stiffness of the columns are not included; because the building is theorized to be a mass pendulum. Therefore stiffness remains constant and torsion can be neglected. The upper floor and lower floor usually twist together. Resonance does not care if you increase the mass or lower the mass, the point is to get resonance away from its spectral center.
disclaimer: all calculations and comments must be checked by senior engineers before they are taken to be acceptable.