1 def aliquot(n):
2 sum = 0
3 for i in range(1, (n/2)+1):
4 if n % i == 0:
5 sum += i
6 return sum
7
8 print aliquot(14)