This question seems related to the case $N=2.$ I gave an answer suggesting that the continued fraction expansion of ${|e_2|}/{|e_1|}$ was the key. I haven't rechecked it. I'd venture that already the case $N=3$ would be much more difficult.
Aaron Meyerowitz
- 30.1k
- 1
- 48
- 104