This is what I found useful. In 2 days you get a gist of what the math and code simplistically is: http://karpathy.github.io/2021/06/21/blockchain/