Confusion with Formula for LM317 circuit

You may want to look up operational amplifier gain. The gain in the simplest case is the ratio of two resistors. The assumption is only that the open loop gain (ie without resistors) is very large.