Pregunta de entrevista de Oracle

Algorithm to solve a mathematical problem of pagination