You are on page 1of 2

integer=28

i=1
j=1
total=0
i(1,29)

d(1,i+1)
1 d(1)
2 d(1)
d(2)
3 d(1)
d(2)
d(3)
6 d(1)
d(2)
d(3)
d(4)
d(5)
d(6)

if i%d==0 total=total+d if total==i*2 print


1mod1==0
1
2mod1==0 0+1
2mod2==0
3
3mod1==0
1
3mod2==0
3mod3==0
4
6mod1==0
1
6mod2==0
3
6mod3==0
6

6mod6==0

12

j=j+1

total=0
0
0

You might also like