Here! I read your final credit scene!
I really like such math-riddles, and especially for the last one made some calculations and thought about making a linear system with different equations :D After making some math notes and played around with the numbers, I got to the solution.
The energy-impulse with all the sound effects were on point!
It wasn't clear for me in the first place that the colors of adjacent blocks must not match, but maybe I just overread something.
Keep making math riddles!