Least Square solution for approximating a sequence

27 Views Asked by At

Suppose I have a sequence of length N $a_1,...,a_N$

I want to approximate this sequence by $k^1,...,k^N$ where $k$ is my variable.

What is the least square solution of this?

is there a closed form solution for this?