Let $p$ be a prime number and the decimal notation of $\frac{1}{p}$ is periodical with a length of the period $4k$, $\frac{1}{p}=0,a_1 a_2…a_{4k} a_1 a_2…a_{4k}…$ .Prove that $a_1+a_3+...+a_{4k-1}=a_2+a_4+...+a_{4k}$.
Problem
Source: VII International Festival of Young Mathematicians Sozopol 2016, Theme for 10-12 grade
Tags: algebra, prime numbers