[Verse 1]
When functions dance with divisors in harmony
You sum up all the pieces, call it f of n
But hidden in that total lives a mystery
The original parts g of d you can't quite see
[Chorus]
Möbius inversion, the mathematical reversal
Turn the sum around, make the hidden visible
Mu function holds the key to transformation
If you know the total, find each summand's station
Undo the divisor dance with calculation
[Verse 2]
Start with f of n equals sum over d dividing n
Of g of d for every divisor in the chain
But now we want to flip it, solve for g instead
The Möbius function mu will clear your head
[Chorus]
Möbius inversion, the mathematical reversal
Turn the sum around, make the hidden visible
Mu function holds the key to transformation
If you know the total, find each summand's station
Undo the divisor dance with calculation
[Bridge]
Here's the magic formula that makes it work
G of n equals sum of mu times f, no quirk
Mu of d times f of n divided by d
Or mu of n over d times f of d, you see
When n equals one, mu sums give you one
When n is greater, mu sums cancel to none
This sifting property makes the inversion run
[Verse 3]
Like integration has its derivative twin
Möbius inversion lets you work within
The world of number theory's deepest code
Where orthogonality lights up the road
[Chorus]
Möbius inversion, the mathematical reversal
Turn the sum around, make the hidden visible
Mu function holds the key to transformation
If you know the total, find each summand's station
Undo the divisor dance with calculation
[Outro]
From totals back to pieces, that's the Möbius way
The undo button for sums that saves the day