Master's Thesis: Using Ergodic Theory to understand Combinatorics: The case of Pythagorean Pairs | Publicación