basic Mathmatics and Algebraic concepts

hello, this is my first post so i'll say something about me first.

i've been trying to get into programming for the better part of 4 years now, but each time i put the book down with frustration.

when i was in High School i slept most classes and my understanding of Math is limited, so what i'm looking for is a reccomendation for a good book on math for a programmer, something with lessons i can work through similar to a high school textbook, but aimed towards programming.

any suggestions would be appreciated