The function f(n) takes the integers to the real numbers such that f(m + n) + f(m - n) = 2f(m) + 2f(n) + mn for all integers m and n, and f(1) = 2. Find f(n).