Let a_1, a_2, ..., a_n be real numbers such that a_1^2 + 2a_2^2 + ... + na_n^2 = 1. Find the maximum value of (a_1 + 2a_2 + ... + na_n)^2.
The maximum value is n.