Linear Recurrences with LLL
Given (a_1, a_2, \ldots, a_n) decide if there is a recurrence which will predict (a_{n+1})
Suppose (a_n = c_{n-1} \cdot a_{n-1} + \cdots + c_0 \cdot a_0 ) for some small/pleasant (c_i)
Then the lattice generated by (e_i) augmented with ( a_i \cdot C ) would have ((c_0, \ldots, c_{n-1}, -1, 0)) in it, but the wrong relationship might have a large last value (or I might have several to build from)
[ 1 0 0 0 0 1000]
[ 0 1 0 0 0 2000]
[ 0 0 1 0 0 5000]
[ 0 0 0 1 0 10000]
[ 0 0 0 0 1 22000]
[ -2 1 0 0 0 0]
[ 0 0 -2 1 0 0]
[ 0 -1 0 -2 1 0]
[ -1 -2 1 0 0 0]
[ 1 0 0 0 0 1000]
hmmm... could be better
hmmm... could be better
What if I also append (a_{i-1})? Then a row which goes to zero in that column and the pervious column will work at two levels!
[2, 5, 10, 22, 0]
[ 1]
[ 2]
[ 5]
[10]
[22]
[ 1 2]
[ 2 5]
[ 5 10]
[10 22]
[22 0]
[ 1 0 0 0 0 10000 20000]
[ 0 1 0 0 0 20000 50000]
[ 0 0 1 0 0 50000 100000]
[ 0 0 0 1 0 100000 220000]
[ 0 0 0 0 1 220000 0]
[ -1 -2 -1 1 0 0 0]
[ -4 2 2 -1 0 0 0]
[ -5 24 -33 10 1 0 0]
[ -2 1 0 0 0 0 10000]
[ 0 -2 1 0 0 10000 0]