Step 1: Understanding the Concept:
Germanium is a group 14 element with valency 4. In a pure crystal each atom forms four covalent bonds with four neighbours. Doping means adding a small amount of another element.
Step 2: What makes a p-type semiconductor.
A p-type semiconductor has holes as the majority carriers. To get holes, the impurity atom must have one electron fewer than germanium has for bonding. That means a trivalent impurity (valency 3), such as boron, aluminium, gallium or indium.
Step 3: Why this gives a hole.
A trivalent atom has only three valence electrons, but it sits in a lattice that needs four bonds. One bond stays incomplete, and this vacancy behaves as a hole. Such an impurity is called an acceptor.
Step 4: Check the other options.
(A) Valency 2 is not used for doping germanium. (C) Valency 4 is the same as germanium, so no extra hole or electron is created. (D) Valency 5 (phosphorus, arsenic, antimony) leaves one extra electron, which makes an n-type semiconductor.
Final Answer:
The impurity must be trivalent, so the valency is 3, option (B).\[ \boxed{3} \]