1,0,5,these three number can be arrange by 3!=6,since 015 and 051 is not valid hence =4

1,1,4,can be arranged by 3!/2=3

1,2,3, can be arranged by 3!=6

2,2,2 can be arranged by 3!/3!=1

2,0,4 can be arranged by 3!-2=4

3,0,3 can be arranged by 3!/2!-1=2

6,0,0 can be arranged by 1!=1

4+3+6+1+4+2+1=21 is the answer