The unitary analogue of Pillai's arithmetical function