hi,

let say i have a number : 1234 , in this number, it can group to 1243, 1324, 1423, 1342 ... in 24 groups,

if the number is 123, it can group to 132, 231, 312, 213 ..... in few groups

any formula to do this?