Record 7 digits (0-9) in ascending order that have a mean of 3 and a median of 1.

Explain how to come up with the answer as well please and thank you.

Mean = ∑x/n

3 = ∑x/7

∑x = 21, so the 7 digits must add to 21.

Half must be ≥ 1 and half ≤ 1, the median.

I assume you can have digits repeated. Seems like you will have multiples of 0 and/or 1.

You will have to explore the alternatives, but this should give you a start.