From ter (“thrice”) + -nus (adjective-forming suffix), compare the older trinus.
Practice speaking and memorizing "ternus" and many other words and sentences in Latin.