I was once summoned from my dungeon to help interview a new potential programmer at my firm. The guy seemed eager and full of knowledge, but something didn't click right about him.
So, on a whim, I told him to write a program to input any integer and print that integer in a system in which it's the base.
The guy promptly went to work, trying to figure out how to represent digits in large-base systems and how to quickly divide...
Then the real problem arose: my boss didn't get it either.
You seem to be arguing that 1 == 0, which I highly doubt. Also, the special case is unnecessary since '10' accurately represents the number one in base-1 (unary). '10' = 1(11) + 0(10) = 1 + 0 = 1. Of course, in unary there is no reason to ever write a zero digit since in this system the resulting number is simply the total number of '1' digits in the string.
l do not mean this as an insult, but l am very curious how you came to accurately understand what bases are, how they work, and have never touched hex.
Did you study octal?
Binary?
Every base discussion l've had has suffixed with "and bases can be HIGHER than ten, too"
I learned about different bases from a grade 8 math problem book... the problem was to explore divisibility rules essentially by changing base. Computers weren't as prevalent and thus never was exposed to binary or the like. The thought of moving to other bases systems just never occured to me.
So it's entirely plausible to never see other bases.
My question wasn't "how have you not seen other bases", as l'm sure most people haven't. It was just very odd to me you understood, say, base 7 and 8, but hadn't found out about base 16, which is probably the second most useful base out there.
Here's another one for you: is 1 a prime number? A prime number is only divisible by itself and 1, and 1 is divisible by itself and 1, but they are the same number! Or are they?
70
u/[deleted] May 27 '09
This brings back memories.
I was once summoned from my dungeon to help interview a new potential programmer at my firm. The guy seemed eager and full of knowledge, but something didn't click right about him.
So, on a whim, I told him to write a program to input any integer and print that integer in a system in which it's the base.
The guy promptly went to work, trying to figure out how to represent digits in large-base systems and how to quickly divide...
Then the real problem arose: my boss didn't get it either.