Let k be any given positive integer. We define the arithmetic function g k for any positive integer n byWe first show that g k is periodic. Subsequently, we provide a detailed local analysis of the periodic function g k , and determine its smallest period. We also obtain an asymptotic formula for log lcm 0≤i≤k {(n + i) 2 + 1}.2010 Mathematics subject classification: primary 11B25; secondary 11N13, 11A05.