I am trying to write something in PARI/GP
.
I want to create a vector with the values from 1000 to 41000 in steps of 3000.
Therefore, I wanted to use the forstep statement. This works fine if you use 1 sequence.
Example:
forstep(x=1000,41000,3000,print(x))
However, I want to do something like:
forstep(x=1000,41000,3000,x[i]=x & i=i+1)
How to do this?