Precise asymptotics with log-periodic term in an elementary optimization problemстатья