A coil is just a current loop, which produces a B-field around it due to moving charge. Each loop will contribute equally to the flux so the B-field is proportional to the number of loops. The radius dependence can be intuitively understood if you imagine the radius going to infinity, then at the centre of the loop it is equivalent to there being no current loop at all, because it is so far away.
The field inside a solenoid is enhanced due to the lump of metal which the coil is wrapped around. There is a reason for this but I won't confuse the issue. This core, iron for example, amplifies the B-field produced by the coils wrapped around it. The field outside a solenoid is weak and so usually can be approximated as zero. Since the current loops produce magnetic flux lines, the more of them the stronger the B-field, the number of magnetic flux lines in a region depends on the concentration of coils in that region (same principle as the normal current loop).
This concentration is N/L. The B-field inside the solenoid is approximately constant.
For a more description you may want to look at Amperes Law and Biot-Savart Law as applied to your examples.