In Welsh mythology, Math fab Mathonwy, also called Math ap Mathonwy (Math, son of Mathonwy) was a king of Gwynedd who needed to rest his feet in the lap of a virgin unless he was at war, or he would die. The story of Math is the fourth book of The Four Branches of the Mabinogi.
Read more about Math Fab Mathonwy: Etymology