12 lines
231 B
Python
12 lines
231 B
Python
|
|
def f(n):
|
|
res = 0
|
|
cont_op = 0
|
|
for i in range(1, n*n+1):
|
|
for j in range(1, i+1, 2):
|
|
for k in range(n+1, 2*i+1, i*j):
|
|
res = res + k+1
|
|
cont_op += 1
|
|
return cont_op
|
|
|
|
|