Squares on my immediate left
Hello Math freaks & friends, I was reading yesterday the "Stringology" chapter in « Automatic Sequences » (the wonderful book by Allouche and Shallit , 2003) when I bumped into this quote (which made my day): « Note that the word square is squarefree while the word squarefree is not ». ... and I thought: what if a(n) describes the number of such squares immediately to its left? The models were those two sequences, already in the OEIS (merci à Maximilian F. Hasler !-) https://oeis.org/A248034 [ a(n+1) gives the number of occurrences of the last digit of a(n) so far, up to and including a(n), with a(0)=0 .] and https://oeis.org/A329447 [ Look left and tell the least frequent: after a(0) = 0, a(n) = 10c + d, where c > 0 is the number of times the least frequent digit d has appeared so far; smallest d in case of tie ]. _______________ Ok, I'll have a try now — please be indulgent as this is a nightmare to compute with coffee, paper and pencil ...