Number theory meets physics: the curious case of the Aubry-André model