Beats come in groups
Most songs you know group their beats in fours - count 1-2-3-4, 1-2-3-4 - which musicians write as 4/4 time. A waltz groups in threes, and some folk and progressive music delights in fives or sevens, which is why it can feel like the floor keeps shifting pleasantly under your feet.
Inside each bar, rhythm is pattern: which beats get a hit and which get silence. A pattern that repeats becomes a groove, and a groove is really just a short number pattern wearing sound. Change one hit and the whole feel changes - drummers spend years learning exactly where those changes matter most.
Patterns layered on patterns
Layer two patterns and things get delicious. Clap three evenly spaced claps in the time a friend taps two, and the combined pattern lines up again every six beats - musicians call this a polyrhythm, 3 against 2, and it is a building block of West African drumming and much jazz.
Pitch has patterns too. A note's octave - the 'same' note higher up - vibrates at exactly double the frequency, and the interval called a perfect fifth has the simple frequency ratio 3:2. Simple ratios tend to sound smooth together, which is one reason these intervals anchor so much of the world's music.
Try it yourself
Try the 3-against-2 pattern: tap two beats with your left hand and three with your right, both starting together. It feels impossible for a minute, then suddenly clicks - say 'hot cup of tea' and tap on 'hot', 'cup' and 'tea' with one hand while the other taps on 'hot' and 'tea' only.
Then build a four-bar body-percussion loop with friends: stomp, clap, snap, rest - assign each person one sound, repeat until it grooves, and change exactly one element per round to hear how small edits steer the whole pattern.

