number theory function tiles