Can somebody explain me how to check wether a number is HAPPY or not for a
given base...


Regards,
Neeraj Kumar
On Sun, Sep 13, 2009 at 1:30 PM, Faiz Bashir <[email protected]> wrote:

> Yes. Eg: 3 in base 2 is:
> 11 > 1^2 + 1^2 = 10 (2 in base 10)
> 10 > 1^2 + 0^2 = 1 (happy no)
>
>
> On Sun, Sep 13, 2009 at 11:54 AM, David Loo <[email protected]> wrote:
>
>>
>> every time,,replace it by the sum of the squares of its digits after
>> the digits are changed by the base?
>>
>>
>>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"google-codejam" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-code?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to