Tupper's Self-Referential Formula

J. Tupper concocted the amazing formula

where is the floor function and is the mod function, which, when graphed over and with

gives the self-referential "plot" illustrated above.

Tupper's formula can be generalized to other desired outcomes. For example, L. Garron (pers. comm.) has constructed generalizations for to 29.