The following is to construct illustrations for concepts of frequency of a properly sampled outcome if any such frequency exists. Doing such illustrations is tedious and liable to error by hand ... so it's best to make a pair of macros and make a macro out of them that does the following:
Suppose I have a block of text with, say, 2 or more arbitrary letters or numbers,
axaaxxaaaxxaaaxxaaaaxxaxa
How does one make a macro that splits a line of text according to the following rule:
If the parameter to the macro is 2, take every second letter in each pair and juxtapose them. That is line 2. Delete these letters from the original line and the remainder is line 1. Display all 2 lines.
If the parameter to the macro is 3, take every second letter in each triple and juxtapose them. This is line 2. Take every third letter in each triple and juxtapose them. That is line 3. Delete these letters from the original line and the remainder is line 1. Display all 3 lines.
If I write
\brk{+}{1}{axaaxxaaaxxaaaxxaaaaxxaxa}
the equivalent manual code is
\begin{equation}
\textrm{axaaxxaaaxxaaaxxaaaaxxaxa}
\end{equation}
If I write
\brk{+}{2}{axaaxxaaaxxaaaxxaaaaxxaxa}
the equivalent manual code is
\begin{equation}
\textrm{aaxaaxaxaaxaa}
\end{equation}
\begin{equation}
\textrm{xaxaxaaxaaxx}
\end{equation}
If I write
\brk{+}{3}{axaaxxaaaxxaaaxxaaaaxxaxa}
the equivalent manual code is
\begin{equation}
\textrm{aaaxaxaxa}
\end{equation}
\begin{equation}
\textrm{aaaxaxaxa}
\end{equation}
\begin{equation}
\textrm{axxaxaaaa}
\end{equation}
And so on.
Now the - parameter chooses the second version of the macro and reverse this behavior.
If I write
\brk{-}{1}{axaaxxaaaxxaaaxxaaaaxxaxa}
the equivalent manual code is
\begin{equation}
\textrm{axaaxxaaaxxaaaxxaaaaxxaxa}
\end{equation}
If I write
\brk{-}{2}{aaxaaxaxaaxaa}{xaxaxaaxaaxx}
the equivalent manual code is
\begin{equation}
\textrm{axaaxxaaaxxaaaxxaaaaxxaxa}
\end{equation}
If I write
\brk{-}{3}{aaaxaxaxa}{aaaxaxaxa}{axxaxaaaa}
the equivalent manual code is
\begin{equation}
\textrm{axaaxxaaaxxaaaxxaaaaxxaxa}
\end{equation}
And so on.
Yes, the ability to format the results into a specific environment for instance the equation environment or change the font or vertical spacing of the n lines in \{brk{+/-}{n}{axaaxxaaaxxaaaxxaaaaxxaxa is important as this is for figure purposes. Hopefully there is a way to make it not a problem for the macro.
BTW the result is this: if the strings are long enough and tending to a frequency of, say, x is 1/3 (iff the original string was randomly sampled as it must be for most scientific purposes) then in each of the two or three or more string made from it by any rule of thumb, the frequency of x is also tending to be 1/3 rather quickly. And if we sampled three parts of the same population each tending to a frequency of x being 1/3 and then added the strings together according to any systematic rule, the frequency of x tends again to 1/3.

;-)– egreg Jul 11 '14 at 09:45\brk{+}{2}I have the wordxaxaxaax. There's not even the same number of letters! – Bernard Jul 11 '14 at 09:48