can u tell me how i can determine if a certain number is a perfect number or not?!
please help me..
Just read this wiki. There are three easy methods: sum all the number's proper divisors (those with modulus equal to zero) and check if it matches the number; generate one perfect number after another with the given formula until you go beyond the number; check if the bit pattern corresponds to that of a perfect number (the pattern is given in the wiki too).
but how can i use a mathmatical method in java.
i mean what the header file i should use?