Concept:
Trivalent impurities (Group 13 elements like B, Al, In) have three valence electrons. When doped into Si or Ge, they create a deficiency of one electron, producing a hole.
Step 1: Bond formation
Three covalent bonds form, one bond remains incomplete.
Step 2: Charge carriers
The missing electron behaves as a hole (positive charge carrier).
Thus, material becomes p-type semiconductor.