By alteration in the arrangement of flags, the signals will change. So we have to find permutations i.e. arrangements of flags. We are at liberty to use any number of flags at a time. Therefore the required number of signals is
6P1 + 6P2 + 6P3 + 6P4 + 6P5 + 6P6
= 6 + 30 + 120 + 360 + 720 + 720 = 1956.