An automorphic number is defined as a positive integer such that the trailing digits of , where is a positive integer, is itself for all .
Let us define an almost automorphic number as a number where only appears as the trailing digits of for all odd . How many almost automorphic numbers are less than 1000?