Text this: Some application of ergodic theory in number theory