Let k be any given positive integer. We define the arithmetic function gk for any positive integer n by We first show that gk is periodic. Subsequently, we provide a detailed local analysis of the periodic function gk, and determine its smallest period. We also obtain an asymptotic formula for log lcm0≤i≤k
{(n+i)2+1}.