solve {S + a_1 + a_2 + a_3 = 356,S + 2a_1 + 4a_2 + 8a_3 = 1762,S + 3a_1 + 9a_2 + 27a_3 = 5250} for S