That was exactly what I was thinking. n is used for naturals, i, j and k are used for variable values in sums, for example (which, when programmed, would require the use of "for" loops).
The use of x, y and z as unknown reals goes far as back as Descartes. I don't know what he used for integers though, or whether he bothered to distinguish integers from reals.