Rational function variant of a problem of Erdös and Graham - Tengely, Szabolcs (Array, 2015)