Will work in either size machine. In fact, the 16K works better! It uses as much memory as it can get, with the result that a 16K machine goes up to 1024 branches and puts a reasonable tree on the screen, while on a 48K Spectrum it just goes on and on and on and in some cases fills half the screen with black lines.