Masala #T51VZSOVWM
Mukammal son
O'zidan boshqa barcha bo'luvchilari yig'indisiga teng son mukammal son deyiladi. n chi mukammal sonni toping.
Kiruvchi ma'lumotlar:
Sizga n soni beriladi.0<n<16
Chiquvchi ma'lumotlar:
Masala javobini chop eting .
Misollar
# | input.txt | output.txt |
---|---|---|
1 |
1 |
6 |
2 |
2 |
28 |
Izoh:
1)1-chi mukammal son 6 chunki 1+2+3=6
2)2-chi mukammal son 28 chunki 1+2+4+7+14=28