Euler in Babylon

Shortest Lattice Vector

March 15, 2015

Let $t_n$ be the tribonacci numbers defined as: $t_0 = t_1 = 0$; $t_2 = 1$; $t_n = t_{n-1} + t_{n-2} + t_{n-3}$ for $n \ge 3$ and let $r_n = t_n \text{ mod } 10^7$.

For each pair of Vectors $V_n=(v_1,v_2,v_3)$ and $W_n=(w_1,w_2,w_3)$ with $v_1=r_{12n-11}-r_{12n-10}, v_2=r_{12n-9}+r_{12n-8}, v_3=r_{12n-7} \cdot r_{12n-6}$ and $w_1=r_{12n-5}-r_{12n-4}, w_2=r_{12n-3}+r_{12n-2}, w_3=r_{12n-1} \cdot r_{12n}$

we define $S(n)$ as the minimal value of the manhattan length of the vector $D=k \cdot Vn+l \cdot Wn$ measured as $|k \cdot v1+l \cdot w1|+|k \cdot v2+l \cdot w2|+|k \cdot v3+l \cdot w3|$ for any integers $k$ and $l$ with $(k,l)\neq (0,0)$.

The first vector pair is (-1, 3, 28), (-11, 125, 40826). You are given that $S(1)=32$ and $\sum_{n=1}^{10} S(n)=130762273722$.

Find $\sum_{n=1}^{20000000} S(n)$.


gamwe6

Written by gamwe6 who lives and works in San Francisco building useful things. You should follow him on Twitter