You just need to solve for when :
where is any integer. We only care about when , which happens for .
9.4m questions
12.1m answers