I lately stumbled unto a strange behaviour of my calculator (a TI-Nspire™ CX II-T CAS): $$ \begin{split} 0^{-2} = 0^{-4} &= \infty & \forall \text{ even numbers}\\ 0^{-1}, 0^{-3} &= \text{undefined} \quad& \forall \text{ odd numbers}\quad&{\scriptsize\text{(note that undefined $\ne$ undefined)}} \end{split} $$ To me, either both should result in $\infty$ ($\tilde\infty$ to be precice) or both should be $\text{undefined}$, since both involve division by zero. Somehow I cannot wrap my head around this, nor find anything about it online.
I've consultated threads like Why does zero raised to the power of negative one equal infinity?, Zero to the negative power. and some more, but they all talk about zero by the power of $-1$, nothing else.
Furthermore, I tried it on some online calculators like WolframAlpha, which directly gives me complex infinity ($\tilde \infty$), others said both would be $\text{undefined}$.
Does anyone know how this can be explained?