Define a sequence $\{a_i\}_{1}^{\infty}$ as follows: $$a_i = \left\lfloor \dfrac{10^{i+1}}{7}\right\rfloor-100\left\lfloor\dfrac{10^{i-1}}{7}\right\rfloor.$$ Find $\max_{i \in \mathbb{N}} a_i$.
Let $10^{i-1} \equiv j \pmod{7}$, where $0 \leq j < 7$. We have $$\left\lfloor \dfrac{10^{i+1}}{7}\right\rfloor-100\left\lfloor\dfrac{10^{i-1}}{7}\right\rfloor = \left\lfloor \dfrac{10^{i+1}}{7}\right\rfloor-100 \cdot \dfrac{10^{i-1}-j}{7},$$ where $0 \leq j < 7$. I didn't see how to continue.
$a_i$ is the last two digits before decimal point of $\frac{10^{i+1}}{7}$
But this digits can be only $1428571428571....$
The maximum of which is $85$
EDIT: More details at OP's request:
The decimal representation of your numbers is:
$$\frac{10^{i+1}}{7}=\overline{d_1d_2...d_{i+1}.d_{i+2}d_{i+3}...}$$ where $d_1,d_2\ldots$ cycle through $1,4,2,8,5,7$
So: $$\left\lfloor\frac{10^{i+1}}{7}\right\rfloor=\overline{d_1d_2...d_{i+1}}$$
The other number: $$\frac{10^{i-1}}{7}=\overline{d_1d_2...d_{i-1}.d_id_{i+1}...}$$ where $d_1,d_2\ldots$ cycle through $1,4,2,8,5,7$
So $$\left\lfloor\frac{10^{i-1}}{7}\right\rfloor=\overline{d_1d_2...d_{i-1}}$$ $$100\left\lfloor\frac{10^{i-1}}{7}\right\rfloor=\overline{d_1d_2...d_{i-1}00}$$
So $a_i=\overline{d_id_{i+1}}$
Which cycles through $14,42,28,85,57,71$, the maximum of which it is $85$