Does anyone know of an algorithm to convert a positive integer N into its base 3 representation? (e.g., 14 in base 10 is 112 in base 3). Any textbook/journal pointers are appreciated! (Source code is appreciated even more :-) -Ted