Odd op-amp circuit with a potentiometer
M.P.....  Now - after some answers and some related comments - I think, it is clear to you that the resistive chain (at left) does NOT influence the ratio (gain) Vo/Vs.

However, if you want - in addition - to find the value of Vs as a function of the potentiometer position, you simply have the problem of a loaded voltage divider, which is relatively simple to solve. The load is simply the 10k resistor because in this caculation, you can assume the inverting opamp input to be grounded.

Simulation: I am not familiar with LTSpice, however in the PSpice program you can do the following (perhaps something similar works in LTSpice):


Replace the pot by two resistors Rx and Ry.
Do not allocate any values, but write instead {Rx} and for Ry write {5k-Rx}


(the form of the brackets is important in PSpice).


In addition, declare Rx as a variable parameter (in PSpice using the .param command).
Now, you can do a DC sweep, however, not for a DC source but for the quantity you have declared as a parameter (in your case: Rx). Sweep Rx from zero to 5k.