I hit the following problem:
sage: f(x) = sigma(x)-x
...
TypeError: unable to convert x (=x) to an integer
Wouldn't it better to keep sigma(x) unevaluated for x not an integer?
Note that f = lambda(x):sigma(x)-x
works but it less nice.
CC: @nexttime @benjaminfjones @eviatarbach @slel
Component: symbolics
Issue created by migration from https://trac.sagemath.org/ticket/8383