A polynomial time algorithm for Sylvester waves when entries are bounded | Synapse