Show for any real numbers $a_1,a_2,...,a_n$
$$(a_1+a_2+···+a_n)^2 \leq n(a_1^2+a_2^2+...+a_n^2)$$
I know the definition of Cauchy-Schwarz is $$(\sum_{i=1}^n a_ib_i)^2 \leq \sum_{i=1}^n a_i^2 \sum_{i=1}^n b_i^2$$ I can write the same problem with following form, but I would not know how to continue to prove it $$(\sum_{i=1}^n a_i)^2 \leq n(\sum_{i=1}^n a_i^2)$$
Note: an other definition of Cauchy Schwarz $$ \langle\ v,u\rangle^2 \leq \langle\ u,u\rangle \langle\ v,v\rangle$$
Could you give me a steps what to use?
Hint:
Choose $b_i$ wisely. It is a constant.
If it is not clear which constant to pick, just let it be an arbitrary non-zero constant.