calculates number of moves for N discs