But why did you stop the process?3*3 = 9 = 10 (base 10)
1*1+0*0 = 1 - it's happy

On Tue, Sep 15, 2009 at 8:18 PM, bsergean <[email protected]> wrote:

>
> Hi there.
>
> About problem A for round 1A:
>
> Input
> 3
> 2 3
> 2 3 7
> 9 10
>
> Output
> Case #1: 3
> Case #2: 143
> Case #3: 91
>
> I can't understand how 91 can be a happy number in base 9.
> Isn't 91 = 81 + 9 + 1 = 9**2 + 9**1 +9**0 = 111 in base 9.
>
> If we sum those digits it yields 3 ... so it's not a happy number,
> no ?
>
> Can someone explains me why I'm wrong ... I must be because no-one
> complained about this.
>
> Cheers,
> - Benjamin
>
> >
>


-- 
Best regards, Дектярев Михаил

--~--~---------~--~----~------------~-------~--~----~
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