When silicon (Si), having four valence electrons, is doped with elements from group III of the periodic table, such as boron (B) and aluminium (Al), both having three valence electrons, a p-type semiconductor is formed. These dopant elements represent trivalent impurities. Other trivalent dopants include indium (In) and gallium (Ga).