I have come to like math better than coding. Maybe because I am a beginner in both coding and math, I prefer taking math proofs apart and playing around with them to seeing some trivial piece of code do some trivial thing.
I'd like to explore the mathematical side of programming using pen and paper. Are there any books that deal with programming problems in mathematical setting? Or what would be the branch of knowledge that studies coding or generally computer science problems purely from math standpoint?