IIRC,
Inductance is effective permeability of core times permeability of free space times effective core cross sectional area times the square of the number of turns divided by the effective core length.
L=mu_0*mu_r*Ae*N^2/le
Adding a gap reduces the effective permeability of the core by adding a large series reluctance. Don't remember the formulae for calculating gap length.