Solution:
Given a permutation π, let ν(π) be the number of fixed points of π. We claim that if we fix π, then the probability that the condition holds, over the randomness of si, is 11121012+ν(π12)−1. Note that a point in S is a fixed point of π12 if and only if the length of its cycle in π is 1,2,3,4, or 6, which happens with probability 115, as each cycle length from 1 to 11 is equally likely. Therefore, the answer is
Eπ[11121012+ν(π12)−1]=11121012+4
Since 11 does not divide 1012+4 this fraction is simplified.
We now prove the claim. Instead of counting (s1,s2,…,s12), we count tuples (t1,t2,…,t12) so that ti=ti+1 for 1≤i≤11 and t1=π12(t12). A bijection between the two is to let ti=π−i(si). To do this, fix a t1. If t1 is a fixed point of π12, we need to count the possibilities for t2,…,t12 so that t1=t2,t2=t3,…,t12=t1. This can be done via recursion: if ak is the number of t2,…,tk+1 so that t1=t2,t2=t3,…,tk+1=t1, then a0=0, while for n≥0 we have an+1=9an+10(10n−an)=10n+1−an; thus a11=1011−1010+⋯+101=111(1012+10). Similarly, if t1 is not a fixed point of π12, there are 111(1012−1) ways. Therefore, number of possible (t1,…,tn) is
111012(ν(π12)+(11−ν(π12)))+111(10ν(π12)−(11−ν(π12)))=1012+ν(π12)−1
as desired.