Given the sequence, \( \left\{ 7,7,7,10,11,12,13,21,\text{ }\!\!\_\!\!\text{ },\text{ }\!\!\_\!\!\text{ } \right\} \),
[Step 1]
Let's look at each term as a (multiple of 7)+ (some other integer).
That is, {7,7,7,10,11,12,13,21,...} = {7(1)+0,7(1)+0,7(1)+0,7(1)+3,7(1)+4,7(1)+5,7(1)+6,7(2)+7,...}
For all of the terms, the 7(integer) part can be represented as \( 7\left\lceil \frac{n}{7} \right\rceil \) (the brackets are the ceiling function, which means you round up to the nearest integer).
\( 7\left\lceil \frac{n}{7} \right\rceil \) gives the values {7,7,7,7,7,7,7,14,...} = {7(1),7(1),7(1),7(1),7(1),7(1),7(1),7(2),...} (for n = {1,2,3,4,5,6,7,8,...,n}).
[Step 2]
Now to handle the values for the integers which we add, {0,0,0,3,4,5,6,7...}, I made the assumption that the pattern continues as {0,0,0,3,4,5,6,7,8,9,10,11,12,...} (it's ambiguous really).
What we first need to do is construct a function which outputs non-zero integers values only for n = 1 through n = 3. The first function that came to my mind which is definitely indisputable is \( \left\lfloor \frac{3}{n} \right\rfloor \) (the brackets represent the floor function, which means to round down to the nearest integer).
And \( \left\lfloor \frac{3}{n} \right\rfloor \) = {3,1,1,0,0,0,0,0,...,0} for the entire set of positive integers n = {1,2,3,4,5,6,7,8,...,n}.
We need to make all three non-zero integer values (which is the first three) the same value. Why not make them 1? To make them one, we first multiply the entire sequence by (1/3) and then take the ceiling of it.
\( \left\lceil \frac{1}{3}\left\lfloor \frac{3}{n} \right\rfloor \right\rceil \).
This gives us {1,1,1,0,0,0,...,0} for n = {1,2,3,4,5,6,...,n}.
Next, let's just pretend that we are just considering the sequence {n} = {1,2,3,4,5,6,7,8,...,n}. If we want to make only the first three terms zero, we can just add {n} to the additive inverse of the step functions we found before times n. That is,
\( n-n\left\lceil \frac{1}{3}\left\lfloor \frac{3}{n} \right\rfloor \right\rceil \)
,which generates the values {0,0,0,4,5,6,7,8,...,n}.
Remember that all we have been aiming for in step 2 is to come up with the sequence {0,0,0,3,4,5,6,7,...,n+1} (from n = 1 to infinity)
All we have to do to the above (well it seems) is to subtract 1.
\( n-1-n\left\lceil \frac{1}{3}\left\lfloor \frac{3}{n} \right\rfloor \right\rceil \) = {-1,-1,-1,3,4,5,6,7,...,n+1}.
All we have to do now to finish this piece is to add the first step function we made, \( \left\lceil \frac{1}{3}\left\lfloor \frac{3}{n} \right\rfloor \right\rceil \) = {1,1,1,0,0,0,...}.
\( -1+n-n\left\lceil \frac{1}{3}\left\lfloor \frac{3}{n} \right\rfloor \right\rceil +\left\lceil \frac{1}{3}\left\lfloor \frac{3}{n} \right\rfloor \right\rceil \) = {0,0,0,3,4,5,6,7,...,n+1} (from n = 1 to infinity).
\( =n-1+\left\lceil \frac{1}{3}\left\lfloor \frac{3}{n} \right\rfloor \right\rceil \left( 1-n \right) \).
[Step 3]
Now all we do is add the terms developed in steps 1 and 2.
\( =\left( 7\left\lceil \frac{n}{7} \right\rceil \right)+\left( n-1+\left\lceil \frac{1}{3}\left\lfloor \frac{3}{n} \right\rfloor \right\rceil \left( 1-n \right) \right) \).