The functional-differential equation y′(x)=ay(λx)+by(x) and generalisations