The number of different signals which can be given from 6 flags of different colours taking one or more at a time, is
1956
Number of permutations of six signals taking 1 at a time = 6p1
Number of permutations of six signals taking 2 at a time = 6p2
Number of permutations of six signals taking 3 at a time = 6p3
Number of permutations of six signals taking 4 at a time = 6p4
Number of permutations of six signals taking 5 at a time = 6p5
Number of permutations of six signals taking 6 at a time = 6p6
∴ Total nubmer of signals
= 6!5!+6!4!+6!3!+6!2!+6!1!+6!
= 6 +30+120+360+720+720 = 1956