Say I have a simple hash function where $x$ is a sequence of integers:
$$h(x)=(a_1\cdot x_1+...+ a_n\cdot x_n) \bmod N=\sum_i a_i\cdot x_i \bmod N$$
where $a_1,a_2,a_3,...,a_n$ is the coefficient known to the attacker, size of $x$ can be anything smaller than $N$.
How to find 2 different inputs that hashes to the same value, i.e $0$?
I feel like this has something to do with linear combination / euclid algorithm but I'm not sure how to proceed.