I'd like to express the following in notation:
Take the DeviceID, subtract one, and convert the result into the hexadecimal number system.
I'm writing documentation for a technical project, and would like to use the formula for similar conversions, instead of repeating myself. I planned on showing the formula once , including the text description, so someone who isn't familiar would understand it too. I found the following, but I'm not sure if it's correct: \begin{equation} [DeviceID-1]_{16} \end{equation}