← Complete problem index

PROJECT EULER · #0507

Shortest Lattice Vector

Statement only · UnsolvedOriginal problem ↗

Let tn be the tribonacci numbers defined as:
t0=t1=0;
t2=1;
tn=tn1+tn2+tn3 for n3
and let rn=tn mod 107.

For each pair of Vectors Vn=(v1,v2,v3) and Wn=(w1,w2,w3) with v1=r12n11r12n10,v2=r12n9+r12n8,v3=r12n7r12n6 and
w1=r12n5r12n4,w2=r12n3+r12n2,w3=r12n1r12n
we define S(n) as the minimal value of the manhattan length of the vector D=kVn+lWn measured as |kv1+lw1|+|kv2+lw2|+|kv3+lw3| for any integers k and l with (k,l)(0,0).

The first vector pair is (1,3,28), (11,125,40826).
You are given that S(1)=32 and n=110S(n)=130762273722.

Find n=120000000S(n).

Write-up coming later

The complete problem is available here. An approach, code, and answer will be added later.