My question is not typical for MathOverflow, and arises in my teaching rather than research, but I think there will be readers who can give interesting answers.
Identify $\{\mathrm{A}, \ldots, \mathrm{Z}\}$ with $\mathbb{Z}/26\mathbb{Z}$. Define a bijection $R$ on the set of words over $\{\mathrm{A}, \ldots, \mathrm{Z}\}$ by $R(w)_i = w_i + i$ for each $i \in \mathbb{N}$. Thus $R$ shifts the letter in position $i$ forwards in the alphabet by $i$ steps, so $R(\mathrm{TAXIS}) = \mathrm{UCAMX}$, and so on.
Let $\pi : \{\mathrm{A}, \ldots, \mathrm{Z}\} \rightarrow \{\mathrm{A}, \ldots, \mathrm{Z}\}$ be a permutation. Let $S_\pi$ denote the substitution cipher on words over $\{A,\ldots, Z\}$ defined by $S_\pi(w)_i = \pi(w_i)$. A not-too-short ciphertext $S_\pi(w)$ can easily be deciphered using frequency analysis.
The cipher $ R^j S_\pi$ (with unknown $\pi$ and $j$) can be broken in at most $26$ times the work required to break $S_\pi$, by trying each value for $j$. My question, raised in T. Körner's 'The pleasures of counting', is on the other possible composition. Even when $j=1$ this seems harder to break.
How, using any modern mathematical or computational techniques, can one decipher a single ciphertext $S_\pi R(w)$, given that $w$ is a message in English? How long a ciphertext is required?
One obvious strategy is to take every $26$th position of the ciphertext. These have all been enciphered using the same permutation, so frequency analysis will be effective. But while the probability distribution on letters agrees with English, no English words are enciphered: how does this affect the required length of ciphertext?