\[Q=(a_{1},a_{2})\times(a_{2},a_{3})\times\cdots\times(a_{N-1},a_{N}),\]