In this alphametic equation, each of the small letters in bold denotes a different base b digit from 0 to b-1. Neither t nor n can be zero.
(ten)*(ten) - ten = ninety
Determine the minimum value of b, for which there exists at least one solution to the above equation.
Smallest base is 11, with 'ten' = '674' (807 in decimal) and 'ninety' = '404761' (650,442 in decimal) as the only solution for that base.
The code used to solve this is very messy and best "left to the imagination."