From base 10 to any base
anagrams