read n z for((y=z;_<0?--y:++x,_*y;)){ z**n-x**n-y**n; } No echo ${_[y]-Yes}