from math import factorial as fact
values = 0


def generate_ncr(n, r):
    return int(fact(n) / (fact(r) * fact(n - r)))


for i in range(100):
    for j in range(i + 1):
        c = generate_ncr(i + 1, j + 1)
        print(i, j, c)
        if c > 1000000:
            values += 1
print(values)

15b690a0ba7d845119c4c7c5f34c082588684494
<mask token>


def generate_ncr(n, r):
    return int(fact(n) / (fact(r) * fact(n - r)))


<mask token>

<mask token>


def generate_ncr(n, r):
    return int(fact(n) / (fact(r) * fact(n - r)))


for i in range(100):
    for j in range(i + 1):
        c = generate_ncr(i + 1, j + 1)
        print(i, j, c)
        if c > 1000000:
            values += 1
print(values)

<mask token>
values = 0


def generate_ncr(n, r):
    return int(fact(n) / (fact(r) * fact(n - r)))


for i in range(100):
    for j in range(i + 1):
        c = generate_ncr(i + 1, j + 1)
        print(i, j, c)
        if c > 1000000:
            values += 1
print(values)

from math import factorial as fact
values = 0


def generate_ncr(n, r):
    return int(fact(n) / (fact(r) * fact(n - r)))


for i in range(100):
    for j in range(i + 1):
        c = generate_ncr(i + 1, j + 1)
        print(i, j, c)
        if c > 1000000:
            values += 1
print(values)
