OFFSET
1,1
EXAMPLE
a(2)=2, so that the last letter of two, o, is the 2nd letter of a(1)=4, four.
PROG
(PARI) A266851(n, show=1, a=4, u=0, s=[], E=k->select(t->t>"@", Vec(English(k))))={for(n=2, n, show&&print1(a", "); s=concat(s, E(a)); u+=1<<a; for(k=1, 9e9, !bittest(u, k)&&E(k)[-1..-1]==if(k<=#s, s[k..k], E(k)[k-#s..k-#s])&&(a=k)&&next(2))); a} \\ Uses English() from A052360. Optional args allow imposing special constraints or use of another language.
CROSSREFS
KEYWORD
nonn,word
AUTHOR
STATUS
approved