Evirir the dragon found positive integers . They want to answer queries of the form (), which means:
Construct the array . In one operation, Evirir can choose two adjacent integers in , say and (), and replace them with one integer . What is the minimum number of operations needed to make all elements in equal?