Answer:
L = N^2Aμ/L
Step-by-step explanation:
To find the inductance you use the following general formula:

N: turns of the solenoid
I: current in the solenoid
ФB: magnetic flux
B: magnitude of the magnetic field
A: cross area of the solenoid
Next, you take into account the magnitude of magnetic field inside a solenoid:

where k is the relative permeability of the material inside the solenoid. the last expression for B also takes into account the long solenoid a approximation, which makes possible that magnetic fields effect in the borders of the solenoid is negligible.
Next, you replace the equation for B in the equation for L:

where you have used k=1 (for air).
If a ferromagnetic material is inserted in the solenoid the value of k is different of 1 and you have for L:
