It is a uncommon question to ask for the harmonic mean of a single number rather than multiple, but technically it would be 1/ (1/2) because n=1 and x1= 2... so 1/ (1/2)= 2.

So the harmonic mean of 2, would be 2. If you have any follow-up questions about harmonic mean though, I would be happy to help.