For every positive integer $n$, let $S (n)$ be the sum of the digits of $n$. Find, if any, a $171$-digit positive integer $n$ such that $7$ divides $S (n)$ and $7$ divides $S (n + 1)$.
Source: 2020 Argentina OMA L3 p1
Tags: number theory, divides, sum of digits
For every positive integer $n$, let $S (n)$ be the sum of the digits of $n$. Find, if any, a $171$-digit positive integer $n$ such that $7$ divides $S (n)$ and $7$ divides $S (n + 1)$.