How it becomes complicated?
A number to be divisible by three sum of its digits should be divisible by 3.
best is to write 3333333 but then numbers are not supposed to be repeated,
so I wrote 1234567 I came to know sum is 28 so I can replace any number by number+2 such that number won't repeat
1234587 or 1234569 would be possible outcomes.