[By the way, the word "combination" when used to refer to a combination lock has nothing to do with the idea of "combinations" in math courses.] If I'm interpreting your problem correctly, you might have a lock combination of: 4 clicks, for instance Up,Down.Down,Right, abbreviated UDDR. There would be 4*4*4*4 or 44 such lock combinations. Or you might have a lock combination with 5 clicks, for instance, Left, Left, Right, Down, UP, abbreviated LLRDU, There would be 4*4*4*4*4 or 45 such lock combinations. or you might have a lock combination with any number of clicks up to and including 12 clicks. For instance if you had a lock combination with 12 clicks, it might be DDRRRULRLLUU. There would be 412 such lock combinations. Since there are 4 clicks, if you have a string on n clicks there would be 4*4*4*...*4 to n factors or 4n possible combinations consisting of n clicks.. Therefore the total number of lock combinations would be 44+45+46+47+48+49+410+411+412 which is the sum of a geometric series with, , and A formula for the sum of a geometric series is Edwin