Let $N = 123456789012345$ and $D = 98765$. We want to find integers $Q$ (quotient) and $R$ (remainder) such that
$N = DQ + R$ with $0 \le R < D$.
We can perform long division.
$N = 123456789012345$
$D = 98765$

Let's divide $123456789012345$ by $98765$.
We can first estimate the quotient by considering the first few digits:
$\frac{123456}{98765} \approx 1.2$, so we expect the quotient to be around $1$ followed by some digits.
We start with the first 6 digits of $N$, which is 123456. Since $123456 > 98765$, the first digit of the quotient is 1.
$123456 - 1(98765) = 24691$.
Bring down 7: $246917$.
$\frac{246917}{98765} \approx 2$, so we try 2.
$2(98765) = 197530$
$246917 - 197530 = 49387$
Bring down 8: $493878$
$\frac{493878}{98765} \approx 5$
$5(98765) = 493825$
$493878 - 493825 = 53$
Bring down 9: $539$.
Bring down 0: $5390$
Bring down 1: $53901$
Bring down 2: $539012$
$\frac{539012}{98765} \approx 5$
$5(98765) = 493825$
$539012 - 493825 = 45187$
Bring down 3: $451873$
$\frac{451873}{98765} \approx 4$
$4(98765) = 395060$
$451873 - 395060 = 56813$
Bring down 4: $568134$
$\frac{568134}{98765} \approx 5$
$5(98765) = 493825$
$568134 - 493825 = 74309$
Bring down 5: $743095$
$\frac{743095}{98765} \approx 7$
$7(98765) = 691355$
$743095 - 691355 = 51740$
The quotient is 1249557 and the remainder is 51740.

$123456789012345 = 98765 \times 1249557 + 51740$

Final Answer: The final answer is $\boxed{1249557, 51740}$
