The number of terms of sequence 5,7,9,11,..., 2N-1 is

The number of terms of sequence 5,7,9,11,..., 2N-1 is

The formula for finding the number of terms of arithmetic sequence
(last first) / tolerance + 1
The problem is (2n-1-5) / 2 + 1 = n-2