(b)
$\cos{\frac{\pi}{3} = \frac{\left( \widehat{\mathbf{i}}\mathbf{+}\widehat{\mathbf{k}} \right)\mathbf{\bullet (}\widehat{\mathbf{i}} + \widehat{\mathbf{j}} + a\widehat{\mathbf{k}})\ \ }{\sqrt{2}\sqrt{1 + 1 + a^{2}}}}$
$\Rightarrow \frac{1}{2} = \frac{1 + a}{\sqrt{2}\sqrt{2 + a^{2}}}$
$\Rightarrow \frac{1}{4} = \frac{(1 + a)^{2}}{2(2 + a^{2})}$
$\Rightarrow 2 + a^{2} = 2(1 + a^{2} + 2a)$
$\Rightarrow a^{2} + 4a = 0$
$\Rightarrow a = 0,\ - 4$