Necessary and sufficient condition on whether there exists a multiple satisfying sum of integers property

37 Views Asked by At

Let $a$ and $b$ be positive integers,
give a necessary and sufficient condition on $b$ so that there exists an integer $k$ such that $S(ka)=b$
where $S(x):=$ the sum of digits of $x$ in base $10$