Ask Your Question

Revision history [back]

You could use a list.

Assuming you have defined a point p on your elliptic curve, form a list containing p, then iterate appending twice the last element of the list to the list.

sage: a = [p]
sage: for n in range(10):
....:     a.append(2*a[-1])