https://srkiwcxzevkcl.blogspot.com/2021/07/how-to-find-number-of-terms-in-sequence.html