As amusing as this thread seems to have become, mind if I ask how any of it is of practical use? What actually prompted the question in the first place? @wowbagger, when you asked it, were you trying to design some API or functionality when this came up? Was it some sort of homework question or academic challenge? Or is it really just pure abstract mathematical curiosity?

If you were actually hoping for help with something (the point of the “Using Swift” category), then please share more of what it is you are trying to solve, so that we can get back to trying to help you with the underlying issue.

2 Likes