This is a companion discussion topic for the original entry at https://toph.co/p/making-friends

This is a companion discussion topic for the original entry at https://toph.co/p/making-friends

This question is poorly worded. It is not clear whether **N** is the class size before or after Byang has joined the class.

Also, if you were to join a new school and try this method, I would be willing to bet that you would make precisely zero friends; there is a big leap between â€ś*Byang plans to make friendsâ€¦*â€ť and â€ś

*count how many friends he*â€ť. This requires clarification, such as â€śAssuming Byang is successful in making friends with everyone he wants toâ€¦â€ť.

**will**makethe entire math is not coded properly like what

I have to divide the input number of N by 2 3 5 or what

The problem is not described properly but the code is right â€¦ you have to count the divisors of N â€¦ and the number of divisors is the number of friends he will makeâ€¦ hope youâ€™d understandâ€¦

Happy Coding !

According to the problem, if the number of students be 6 then Byangâ€™s roll number should be 7 and in that case the output should be 1 since only 1 is divisor of 7 !!!