Verify that P and Q are both in E(F5)
2. This problem considers examples of the double-and-add algorithm for efficiently computing the multiple of a point on an elliptic curve. Suppose we have an elliptic curve E and a point P ∈ E, and suppose we want to compute nP for some positive integer n. Here is one way to do it efficiently.
Write n in binary form: n = n0 + n1 2 + n2 2^2 + ... + nr 2^r, with each ni {0,1}. We will assume that nr ≠ 1.
Compute the sequence of points,
Q0=P
Q1=2Q0
Q2=2Q1
Qr=2Qr-1
We can then compute nP as
nP=n0Q0+n1Q1+n2Q2+..+nrQr
Thus we can compute nP by performing at most r doublings and r additions on E. Since n ≥ 2, we see that r ≤ log2(n). Therefore, the number of necessary computations is small with respect to n, and this makes it possible to compute nP even for large values of n. You may find this reminiscent of the method of successive squaring for computing a mod m in modular arithmetic. Now for the actual problems:
Use the double-and-add procedure to compute nP on the elliptic curves over finite fields below.