Calculating number of pages when the number of lines of even pages is different from odd

24 Views Asked by At

I have an array and I want to divide them into page according to preset page size, but the maximum number of rows in a even page is n and the maximum of rows in odd page is m, with n different from m.

How do I find out the total number of pages?