[m]\frac{2023}{2024}=1-\frac{1}{2024}[/m]
[m]\frac{2024}{2023}-\frac{2023}{2024}=1+\frac{1}{2023}-(1-\frac{1}{2024})[/m]
[m]\frac{2024}{2023}-\frac{2023}{2024}=1+\frac{1}{2023}-1+\frac{1}{2024}=\frac{2024+2023}{2023\cdot 2024}[/m] ⇒
[m]p=2024+2023=4047[/m]