Write a product of two numbers in non decimal base If $A=(b-1) (b-1) (b-1)$ and $B=(b-1) (b-1)$ are written in base $b$, what is $A\times B$ in base $b$? 
I've tried developing $A \times  B$ in decimal base but couldn't get this product back in base $b$.
Beside this, is there a general procedure to compute product in non decimal base.
Thanks in advance for your help,

Let throw away the usual meanings of $8,9,10$ and replace them with $10$ means $b$, $9$ means simply $b -1$ and $8$ means $b-2$.  We assume $b \ge 3$ and so if we were dealing with base $7$ or base $32$ then $9$ and $8$ means "six" and "five" in base $7$, and $9$ and $8$ means "thirty-one" and "thirty" in base $32$. 
Okay.  So  
$A = (b-1)(b-1)(b-1) = 999 =  b^3 -1 = 1000 - 1$
$B = (b-1)(b-1) = 99 = b^2 - 1 = 100 - 1$
So $AB = (b^3 -1)(b^2 - 1) = (1000 -1)(100 - 1)$
$100000 - 1000 - 100 + 1 = $
$99000 - 100 + 1 = $
$98900 + 1 = 98901 = (b-1)(b-2)(b-1)01$
This will be true for all $b \ge 3$
So $b=3: 21201$
$b=4: 32301$
$b=5: 43401$.....
$b=9: 87801$
$b=10: 98901$
$b=11: A9A01$.....
$b =16: FEF01$, etc.
