Crazy billy theres a simple way to do this without having huge numbers. make the variable first equal to one. Now using an if statement what you would do is have it so if the varaible is one then add one, else subtract one. So that the only two numbers ever present are one and 2.I havent read what is needed for this mod but for the program ur speaking of since you only need odd and even my method will work as I had to use it for alternating colors on a php shoutbox i made.
EDIT: Oh and I just read the who jk flip flops thing... Well to say the least ive used these b4 and hated every moment using them. I had to do things more sophisticated with them. But to say the least, i do not recomend them to a novice unless you have a program like circuit maker where you can test the wiring first. Breadboards got very messy when i used this chip and i must say I LOVED programable chips far more than jk's.