Marc said: The analogs for proper substrings, A078822(n)-1 and A078823(n)-n, aren't in the OEIS, They will be A144623 and A144624 in a few minutes (but without any explanation). - Neil