Esempio n. 1
0
def s1301(n):
    return sum( mn(a,b,c,d,e) for a,b,c,d,e in op(n-1,5) if a>1 and b>c ) + \
           sum( mn(a,b,c,d,e)/2 for a,b,c,d,e in op(n-1,5) if a>1 and b==c )
Esempio n. 2
0
def s2001(n):
    return sum( mn(a,b,c) for a,b,c in op(n-1,3) if a > b > 1 ) + \
           sum( mn(a,b,c)/2 for a,b,c in op(n-1,3) if a == b > 1 )
Esempio n. 3
0
def s0211(n):
    return sum( mn(a,b,c,d)/2 for a,b,c,d in op(n-1,4) if a == b and c > 1 ) + \
           sum( mn(a,b,c,d) for a,b,c,d in op(n-1,4) if a > b and c > 1 )
Esempio n. 4
0
def s1300(n):
    return sum( mn(a,b,c,d) for a,b,c,d in op(n-1,4) if a>1 and b>c ) + \
           sum( mn(a,b,c,d)/2 for a,b,c,d in op(n-1,4) if a>1 and b==c )
Esempio n. 5
0
def s2300(n):
    return sum( mn(a,b,c,d,e) for a,b,c,d,e in op(n-1,5) if a>b ) + \
           sum( mn(a,b,c,d,e)/2 for a,b,c,d,e in op(n-1,5) if a==b )
Esempio n. 6
0
def s2101(n):
    return sum( 3*mn(a,b,c,d) for a,b,c,d in op(n-1,4) if a > b > 1 ) + \
           sum( mn(a,b,c,d) for a,b,c,d in op(n-1,4) if a > b == 1 ) + \
           sum( 3*mn(a,b,c,d)/2 for a,b,c,d in op(n-1,4) if a == b > 1 )
Esempio n. 7
0
def s1211(n):
    return sum( mn(a,b,c,d,e) for a,b,c,d,e in op(n-1,5) if c == 1) + \
           sum( 3*mn(a,b,c,d,e) for a,b,c,d,e in op(n-1,5) if c>1 and a > b) + \
           sum( 3*mn(a,b,c,d,e)/2 for a,b,c,d,e in op(n-1,5) if a==b and c>1 )
Esempio n. 8
0
def s2200(n):
    return sum( 3*mn(a,b,c,d) for a,b,c,d in op(n-1,4) if a > b > 1 ) + \
           sum( 2*mn(a,b,c,d) for a,b,c,d in op(n-1,4) if a > b == 1 ) + \
           sum( 3*mn(a,b,c,d)/2 for a,b,c,d in op(n-1,4) if a == b > 1 ) + \
           sum( mn(a,b,c,d) for a,b,c,d in op(n-1,4) if a == b == 1 and c > d) + \
           sum( mn(a,b,c,d)/2 for a,b,c,d in op(n-1,4) if a == b == 1 and c == d)
Esempio n. 9
0
def s2111(n):
    return sum( 3*mn(a,b,c,d,e) for a,b,c,d,e in op(n-1,5) if a > b ) + \
           sum( 3*mn(a,b,c,d,e)/2 for a,b,c,d,e in op(n-1,5) if a == b)
Esempio n. 10
0
def s1201(n):
    return sum( mn(a,b,c,d) for a,b,c,d in op(n-1,4) if min(b,c) >= 2)
Esempio n. 11
0
def s1210(n):
    return sum( 3*mn(a,b,c,d)/2 for a,b,c,d in op(n-1,4) if a==b and c>1) + \
           sum( mn(a,b,c,d) for a,b,c,d in op(n-1, 4) if c == 1) + \
           sum( 3*mn(a,b,c,d) for a,b,c,d in op(n-1, 4) if c>1 and a>b )
Esempio n. 12
0
def s1200(n):
    return sum( mn(a,b,c) for a,b,c in op(n-1,3) if min(a,c) > 1 )
Esempio n. 13
0
def s1111(n):
    return sum( mn(a,b,c,d) for a,b,c,d in op(n-1,4) if a>1 )
Esempio n. 14
0
def s2011(n):
    return sum( mn(a,b,c,d) for a,b,c,d in op(n-1,4) if a > b ) + \
           sum( mn(a,b,c,d)/2 for a,b,c,d in op(n-1,4) if a == b )
Esempio n. 15
0
def s0300(n):
    return sum( mn(a,b,c)/6 for a,b,c in op(n-1,3) if min(a,b,c) > 1 )
Esempio n. 16
0
def s2100(n):
    return sum( 2*mn(a,b,c) for a,b,c in op(n-1,3) if a > b > 1 ) + \
           sum( mn(a,b,c) for a,b,c in op(n-1,3) if a > b == 1 ) + \
           sum( mn(a,b,c) for a,b,c in op(n-1,3) if a == b > 1 )
Esempio n. 17
0
def s0301(n):
    return sum( mn(a,b,c,d)/6 for a,b,c,d in op(n-1,4) if min(a,b,c) > 1 )
Esempio n. 18
0
def s2201(n):
    return sum( 3*mn(a,b,c,d,e) for a,b,c,d,e in op(n-1,5) if a > b > 1 ) + \
           sum( 2*mn(a,b,c,d,e) for a,b,c,d,e in op(n-1,5) if a > b == 1 ) + \
           sum( 3*mn(a,b,c,d,e)/2 for a,b,c,d,e in op(n-1,5) if a == b > 1 ) + \
           sum( mn(a,b,c,d,e) for a,b,c,d,e in op(n-1,5) if a == b == 1 and c > d) + \
           sum( mn(a,b,c,d,e)/2 for a,b,c,d,e in op(n-1,5) if a == b == 1 and c == d)
Esempio n. 19
0
def s0210(n):
    return sum( mn(a,b,c)/2 for a,b,c in op(n-1,3) if a == b and c > 1 ) + \
           sum( mn(a,b,c) for a,b,c in op(n-1,3) if a > b and c > 1 )
Esempio n. 20
0
def s2301(n):
    return sum( mn(a,b,c,d,e,f) for a,b,c,d,e,f in op(n-1,6) if a>b ) + \
           sum( mn(a,b,c,d,e,f)/2 for a,b,c,d,e,f in op(n-1,6) if a==b )
Esempio n. 21
0
def s2110(n):
    return sum( 2*mn(a,b,c,d) for a,b,c,d in op(n-1,4) if a > b ) + \
           sum( mn(a,b,c,d) for a,b,c,d in op(n-1,4) if a == b )