The province borders San Juan in the north , San Luis and La Pampa in the east , NeuquÃ n in the south , and Chile to the west . It borders to the north with San Juan , the south with La Pampa and NeuquÃ n , the east with San Luis , and to the west with the republic of Chile ; the international limit is marked by the Andes mountain range .