Alternating cipher

Computer Science Level pending

Suppose RFMTD is encoded to SENSE according to an alternating substitution, how is MATH IS FUN encoded under the same cipher?


  • An alternating substitution MnM_n makes, for instance, the following mapping

M2(a)yM2(b)dM2(c)aM2(d)fM2(e)cM2(z)b\begin{aligned} M_2(\textrm{a})& \rightarrow \textrm{y} \\ M_2(\textrm{b})& \rightarrow \textrm{d} \\ M_2(\textrm{c})& \rightarrow \textrm{a} \\ M_2(\textrm{d})& \rightarrow \textrm{f} \\ M_2(\textrm{e})& \rightarrow \textrm{c} \\ &\ldots \\ M_2(\textrm{z})& \rightarrow \textrm{b} \end{aligned}

In general, nn can be any integer, positive or negative.


Problem Loading...

Note Loading...

Set Loading...