title: Simple Vandermonde Matrix with for loop
body: <p>This is a very simple question.My aim is to eventually create a Vandermonde matrix but first i need to:</p>
  
  <p>Write a function that takes a real number  α  and an integer  n  as input, and returns a vector  v=(1,α,α2,…,αn−1)</p>
  
  <p>so far i have:</p>
  
  <p>import numpy as np</p>
  
  <pre><code>n =6
  a= 3
  for i in range(n):
      v = np.array([1, a**2, a**(n-1)])
  print v
  </code></pre>
  
  <p>I get: [  1    9  243] which is not what i want. Please can you help, thank you!</p>