I understood divide by 3 counter. I was wondering if there's a generalized method to implement Divide By N counter where N is ODD like 5, 7, 9 and so on.
Well one method that would allow for creating general purpose parameterized module would be to use the same approach of the shift register (like your other post) with the all zeros condition generating the initial pulse and the length of the shift register would be one less than the N value.