def mouvements_Hanoi(n): h = [0] for n in range(1,n): h.append(2*h[-1]+1) return h