2013-04-17 14:34:39 +08:00

9 lines
159 B
Python

m = 166
while 1:
five = m * (3 * m - 1)
n = int(five ** 0.5)
if five == n * (n + 1) and n % 2 == 1:
break
m += 1
print m * (3 * m - 1) / 2