n is the raw number of frames in the sequence (fNumFrames) i is the number of iterations (fLoopCount) For (i > 0), the number of effective frames depends on the loop count. for kBounce \ i (num iterations) n \ 1 2 3 ------------------------------------------------------- 1 | 1 (1) 2 (11) 3 (111) 2 | 3 (121) 5 (12121) 7 (1212121) 3 | 5 (12321)