Let, Base of the number system be B.
There are total N items
Each item is of D digits each.
We can use Bucket sort as the stable sort algorithm for performing Radix sort. So we need B buckets from 0 to (B-1). (The digits could range from 0 to B-1 in a Number system with base = B)
From each item, we take one digit (start either from LSB or MSB), so there will be total N digits (as there are N items) that we need to put in the bucket. For each digit, we need B comparisons to put that digit into its corresponding bucket(as there are B buckets). So, for all N digits we need (B*N) comparisons.
Each number has D digits, so we need to perform the above step for all the D digits. So, total D*(B*N) comparisons are there.
After that there will be no comparisons to complete the process, we just need to simply traverse each bucket once to get the sorted list.