An even better answer!
I found an even more convenient method of changing bases. Let's consider base six: "12345" again.
First, we take the left-most digit: "1". Then, if it were "3" or higher, we would convert it to base three, but "1" is the same in base six as in base three.
Second, multiply it by two: 1*2 = 2
Third, multiple by base three "10": 2*10 = 20 base three
Now, we take the second left-most digit: "2", and leave it alone, because it is the same in base six or base three. Then, add it to our running total: 20+2 = 22.
Multiply 22 by 2: 22 * 2 = 110 + 11 = 121.
And multiply 121 by 10: 121 * 10 = 1210.
Now, we take the middle digit: "3", and convert it to base three: "10". Add it to 1210: 1210 + 10 = 1220.
Multiply by 2: 1220 * 2 = 2000 + 1100 + 110 = 10210.
Multiply by 10: 10210 * 10 = 1,02100.
Take second right-most digit: "4", and convert to base three: "11". Add it to 102100: 1,02100 + 11 = 1,02111.
1,02111 * 2 = 2,11222.
2,11222 * 10 = 21,12220.
Take the right-most digit: "5", and convert to base three: "12". Add it to 21,12220: 21,12220 + 12: 21,20002.
So, in summary: work from left to right, take the the digit, convert to base three, multiply by 2, then multiply by base three "10", then convert the next digit to base three and add it to the running total, multiply the running total by 2, multply the running total by base three "10", and etc. until you have finally added the rightmost digit, converted to base three, to the running total. At that point, the running total will be your base six number converted to base three.
Daniel