Problem:
Maga Magò has a deck of 52 cards, arranged in a pile, with the backs facing up. Magò separates the packet made up of the seven cards at the top of the pile, flips it over, and puts it at the bottom of the pile. Now all the cards are again in a pile, but not all of them still have their backs facing up: the seven at the bottom are turned the other way. Magò repeats the previous operation until it happens again that all the cards have their backs facing up. In total, how many packets of seven cards has Magò flipped?