The arithmetic complexity counts the number of algebraically independent entries in periodic continued fraction $\theta=[b_1,\dots, b_N, \overline{a_1,\dots,a_k}]$. If $\mathscr{A}_{\theta}$ is a noncommutative torus corresponding to rational elliptic curve $\mathscr{E}(K)$, then rank $\mathscr{E}(K)$ given by simple formula $r(\mathscr{E}(K))= c(\mathscr{A}_{\theta})-1$, where $c(\mathscr{A}_{...