/* @numberOfIterations
* SQL Server limits recursive CTEs to a maximum of 100 iterations before raising the following error:
* `The statement terminated. The maximum recursion 100 has been exhausted before statement completion.`
* Hence, if we know that 100 or fewer iterations are needed we can use a simple recursive CTE to generate the series.
* Note: `+ 1` is added to the divided result to prevent off-by-one error due to rounding.
*/
declare /*CONSTANT*/ @MAXIMUM_RECURSIONS_ALLOWED int = 100;