I would recommend this book for help with CS types of math. It was a required text book in one of my CS classes back in college. I still look back at it from time to time and I’m now a senior dev. It’s great for understanding conversions between bases, truth tables, sets, etc. (on mobile so sorry if this formats poorly) Schaum's Outline of Essential Computer Mathematics https://www.amazon.com/dp/0070379904/ref=cm_sw_r_cp_api_glc_fabc_AS9HDWSPGC7ED82BXRCD