Problem

Source: RMO Hyderabad 2016 , P3 .

Tags: number theory



For any natural number $n$, expressed in base $10$, let $S(n)$ denote the sum of all digits of $n$. Find all positive integers $n$ such that $n^3 = 8S(n)^3+6S(n)n+1$.