Term Test 2 --- selected Solutions 2. LI: if answer=false then for all 0<= j < s, i^2 != n and if answer=true that n=(s-1)^2 P(i): If there are least i iterations, then if answer_i = false then for all 0<=jP(i+1) If answer_{i+1}=flase this means that the condition on line 4 didn't hold, so (s_{i+1}-1)^2 != n. Notice that s_{i+1}-1 = s_i so s_i^2!=n. Now by P(i) we can see that answwer_i must be false (as otherwise (s_i-1)^2=n which is impossible as s_i^2<=n), and so we get that 0<=jn, if the final variable answer is false we know that 0<=j 0. Since ss is in L o L, then there is a string in LoL which is of length 2m. But LoL is L, so this means that there is a string in L which is of length 2m > m. That is contradiction, and so if such a finite nonempty language L exists, it must be that L={eps}.