if each participant of a chess tournament plays exactly one game with each of the remaining participants , then 153 games will be played during the tournament . find the number of participants .
import math
n0 = 153.0
t0 = n0 * 2.0
t1 = t0 * 4.0
t2 = t1 + 1.0
t3 = math.sqrt(max(0, t2))
t4 = t3 + 1.0
answer = t4 / 2.0
print(answer)