Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from itertools import *
- for i in permutations(range(1,50),6):
- s=sum(i)
- p=reduce(int.__mul__,i)
- c=0
- for x in permutations(range(1,50),6):
- if sum(x)==s: c+=1
- if p/s==c and s*c>2*10^6:print i
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement