# C <del>89</del> , <del>87</del> , <del>82</del> , 71 bytes [Took xnor's Python solution, and removed the linebreak][1] p(x,y){for(x=-70*y-x,y=1;x<0;x+=++y*y);printf("%d %d %d",~-y,x/y,x%y);} [0-indexed][2] z;p(x,y){for(x+=y*70+1,y=z=0;z<x;z+=++y*y);z-=x;printf("%d %d %d\n",y-1,z/y,z%y);} [1-indexed][3] z;p(x,y){for(x+=~-y*70,y=z=1;z<x;z+=++y*y);z-=x-y;printf("%d %d %d\n",y,z/y,z%y+1);} [1]: https://tio.run/##Pc7BCsIwDAbg@56iFAbt0mK9KJL1YUZlsoOzzAkJZb56bTcQksv3h58E@wgh56jIsE7ja1Hk7dV1bAv4M1LvkMADcMca4zLN66hkexf7SPO1bOhUti3xlp/DNCudmlpUTgV7h4J7f7khA@i/U3Xanaqn4wGMn/WtpCxVzZZ/ [2]: https://tio.run/##PY5BCoMwEEX3niIIQuIkVDctZZybdFMsFhdNRbqYGfHsaWKh8FePx@OP4TmOKSkulr24bXqvloGkvXTQeyGlDnVgVCAAacWhBmJc1jl@Jls3D3PsFmsvofd6Eq9Ntvb0us/Ruq0qxSwbySUjA52vKADuz7lwPjgX/juC1Z6@ [3]: https://tio.run/##PY7BCoMwEETvfkUQhMRNqJ48rPsnvZQUi4emIj3srthfT6OFwszlMTwmhkeMOSsulr24bXqtloE@Qdqh80JKPerIqEAA0opDDcRBcFnn9J5s3dzNmWuqvXi9lDYCvcM9P29zsm6rDmcZGykuIyMNHQqA@3M@OJ@cD/67gtWevw