At the end of the exercise, those and only those dogs will be sitting, whose numbers are perfect squares, like 1, 4, 9, 16, . . . . The number of perfect squares from 1 to 255 is the integer part of the number= 15.97, i.e. 15. ANSWER. At the end of the exercise, 15 dogs will be sitting.