title: Creating a numpy array with repetitive pattern
body: <p>I am trying to create an array of size 6*n, such that for every batch of 6 cells in the array I will have the following integer values:</p>
  
  <pre><code>a = [n-2, n-1,n,n,n+1,n+1,n+2,n+3]
  </code></pre>
  
  <p>The banal way that I can think of is using this routine:</p>
  
  <pre><code>a = []
  for i in xrange(n):
      np.append(a,[n-2, n-1,n,n,n+1,n+1,n+2,n+3])
  </code></pre>
  
  <p>But is there a smarter-faster way of doing it? </p>