i dont understand how there can be 531441 combinations.

EDIT : that happens to be 9^6 ... shud that give a hint ?????