This is one way to do it:
Now when you change n it gets updated automatically.
Many thanks Gustavo. It works fine. Perhaps, because I am on a Mac your step 3 didn't work quite as expected. However I was able to choose "evaluate in place" from a menu. Mike