The self-inductance (L) of a solenoid is directly proportional to the square of the number of turns per unit length (n2) and the length (l).
Given: LA = 2LB, nA = $\frac{1}{2}$nB. LA and LB represent the self-inductances of solenoids A and B, respectively.
Therefore, LA ∝ nA2lA and LB ∝ nB2lB.
With lA = 2lB and nA = nB/2, the ratio of inductances is $\frac{L_A}{L_B} = \frac{n_A^2 l_A}{n_B^2 l_B} = \frac{(n_B/2)^2 (2l_B)}{n_B^2 l_B} = \frac{1}{2}$.
Consequently, the ratio LA : LB is 1 : 2.