i just wanted to say, with the nth hex number, you can find a certain decimal number, without calculating everything in front of it, assuming that there are no hex numbers folowing your current one(i.e. the nth hex number is the last one, there is no nth+1 number), that's the simple part, there may be, i'm not sure myself though, a way to add in following hex numbers.