Extremal orders of an arithmetic function