What is the smallest value that the sum of the digits of the number $3n^2+n+1,$ $n\in\mathbb{N}$ can take?
Problem
Source: Mathematical Danube Competition 2017, Juniors P1
Tags: number theory, sum of digits, romania
Source: Mathematical Danube Competition 2017, Juniors P1
Tags: number theory, sum of digits, romania
What is the smallest value that the sum of the digits of the number $3n^2+n+1,$ $n\in\mathbb{N}$ can take?