MathDB
Number with a "convex" sequence of digits

Source: Bundeswettbewerb Mathematik 2018, Round 1 - #1

June 30, 2018
Digitsnumber theoryarithmetic

Problem Statement

Find the largest positive integer with the property that each digit apart from the first and the last one is smaller than the arithmetic mean of her neighbours.