Drag rhythmic values into up to 8 beat blocks per line to build a drum groove, or click a tile then click a block to place it — handy on a trackpad.

🎵 Number Theory Lesson 6: Fermat's Little Theorem — Find aᵖ mod p mess around all you want, nothing here saves
150 BPM
Loading drum sounds…
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
4/4 ×2
🎯 Lesson: 0/4 · 🥁 0 solved · 0 badges

Number Theory, Lesson 6: Fermat's Little Theorem

Math skill: Find aᵖ mod p

How the beat teaches it: Every slot gives a and a prime p — Fermat's Little Theorem guarantees aᵖ ≡ a (mod p). Compute a mod p directly to check it. Build that many notes anywhere in the kit.

This is lesson 6 of 24 in RockBlocks Math, Number Theory, a free course where every lesson turns a math idea into something you can count, hear, and play. The previous lesson, Euler's Totient Function,” covered find φ(n), the Count of Integers Coprime to n. Next is Lesson 7, Modular Exponentiation by Repeated Squaring.”

Every slot above (A, B, C, D) is its own question, and it’s a real, blank RockBlocks beat the whole time — the same drag-and-drop tiles, kit, tempo, sheet music, and drummer view as anywhere else on the site. Tap ❓ Questionin the corner to read the current slot’s problem, build your answer right in the grid, then tap ✓ Check Answerto grade it. Once you’re done, keep going: expand the beat, drop it into a Stack, or save a copy to your own page — nothing here overwrites the lesson itself, so every visitor still starts from the same blank slots.