J. H. Conway [26] proved the remarkable result that a simple generalization of the problem is algorithmically undecidable. He considers the class of periodically piecewise linear functions having the structure