Please can you tell me if my husband has written divorce 3 times on the paper and gave it to me is this valid?

No. It is not valid. Unless he was mute, and he wrote that in the presence of two just witnesses, and you were in a state of purity during which no intercourse occurred between you.