getting back to integertheory, then strings... Will probably do some more experimentation after this trying to coalesce things even more...