An n-type semiconductor is obtained by doping a semiconductor with a pentavalent impurity. The impurity so added produces free electrons. Therefore, in an n-type semiconductor, the electrons are majority carriers and holes are minority carriers and pentavalent atoms are the dopants.