zig has a minimum base of 3, since it has 3 different digits. But it could
have a larger base where some digits are not used, in the same way that 187
can be a number in base 10, with digits 0, 2, 3, 4, 5, 6, and 9 unused.


On Fri, Mar 15, 2013 at 10:46 AM, Aneesh Dogra <[email protected]> wrote:

> How does zig represent 187 in base 10. zig has 3 letters hence its base is
> 3. The minimum value it can attain is 102 (base 3). If we convert it to
> base 10 we have 1 * 3^2 + 0 * 3^1 + 2 * 3^0 = 11. Am I missing something?
>
> On Thursday, 17 January 2013 01:12:54 UTC+5:30, Luke wrote:
>
>> The string "zig" is the encoding of a number in some base, with digits
>> relabelled.
>>
>> So "zig" could represent 187 in base 10 or (14)x100^2+(28)*100+57=142857
>> in base 100 or (1)x3^2+(0)x3+2=11 in base 3. Any number in any base with 3
>> different digits. It turns out the smallest number that has such a
>> representation is 11.
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Google Code Jam" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
>
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-code/-/-0DVEzNIZWsJ.
>
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Code Jam" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to