Given a positive integer \( n \), find all possible values of \( n \) such that the sum of any three consecutive integers starting from \( n \) is a perfect square. Then, determine the smallest \( n \) that satisfies this condition. Let's think step by step and output the final answer within \boxed{}.
user