Skip to main content
Challenges Point addition (chord rule)
Cryptography Easy Group operations Solves: 8

Point addition (chord rule)

Author: CyberSamSU
Points
15

An elliptic curve over the field Fp is written in the short Weierstrass form:
E: y² = x³ + a·x + b (mod p). The points of the curve and the special «point at infinity» O together form a group: points can be added, and O acts as zero.

Adding two different points is defined geometrically as follows: a straight line is drawn through P and Q, it intersects the curve at a third point, and the negation of that point will be R = P + Q. Over Fp, this is just three formulas:

lambda = (y2 - y1) * (x2 - x1)^(-1)  mod p
x3 = lambda^2 - x1 - x2              mod p
y3 = lambda*(x1 - x3) - y1           mod p

Note: (x2 - x1)^(-1) is not division, but the modular inverse. In Python 3.8+ it is found with pow(x2 - x1, -1, p).

Curve parameters:

p = 9739
a = 497
b = 1768
P = (9306, 6219)
Q = (4605, 3168)

Calculate the point R = P + Q.

Answer: the coordinates of the point in the format x,y — first x, then a comma, then y (e.g. 1234,5678).

Hints 2
Opening a hint reduces the points you get for solving this challenge.
Hint 1 −1 pts Log in
Hint 2 −3 pts Log in
To submit a flag, log in.

First solvers

1. Лазиз 04.10.2026
2. Mirjaxon Qaxxarov 27.10.2026
3. Odam 06.11.2026
4. Doston Allayarov 12.11.2026
5. Jasmin Xuseinova 15.11.2026
6. akobir 15.11.2026
7. Kamron_99 16.11.2026
8. milanchka_26 19.11.2026