I want the last 4 values of this equation.
Is there a better way to this in one step, like modifying the equation or another extraction technique other than using delete
a=5
d=2
n = np.cumsum(d ** np.arange(1, a+1))
print 'n=', n
n = np.delete(n,0)
print 'n extracted=', n
n= [ 2 6 14 30 62]
n extracted= [ 6 14 30 62]