Question 1210199
.


The solution by @CPhill is unjustifiably complicated and fatally incorrect.


His answer is incorrect.


See the correct solution in the post by @greenestamps.