After misunderstanding the last thread from Ali Sada about "Ordered Cycles of the Last Digit Under Repeated Multiplication", and going down my own rabbit hole...
I discovered this:
if you keep multiplying n by itself (or looking at the powers of n in order), you see that the last digit makes a cycle going through 1, 2 or 4 values.
Now if you look at the second digit, or the last 2 digits, the cycle is 1, 2, 4, 5, 10, or 20. But it's always a multiple of the last digit cycle.
With each new digit added, the cycle becomes larger and larger, but the cycle for the last n digits is always a multiple of the cycle for the last n-1 digits.
So, if instead you take the ratio of the cycle for n digits to the cycle for n-1 digits, you always get 1, 2, 5 or 10, which makes sense because they are the factors of 10, and we operate in base 10.
So we get this:
2: 4 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5
3: 4 5 5 5 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10
4: 2 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5
5: 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
6: 1 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5
7: 4 1 5 5 5 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10
8: 4 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5
9: 2 5 5 5 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10
10: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
11: 1 10 5 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10
12: 4 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5
13: 4 5 5 5 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10
14: 2 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5
15: 1 2 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
16: 1 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5
Now if we look at the values of n for which, from the 2-digit cycle to infinity, the ratio of a cycle to the previous cycle is always 5, we get these:
2, 4, 6, 8, 12, 14, 16, 22, 28, 34, 36, etc...
74 for example is not included because the first ratio is a 1 not a 5.
74: 2 1 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5
And this end-up to be exactly
A376508, which is obtained completely differently.
A376508 is the "Natural numbers whose iterated squaring modulo 100 eventually enters the 4-cycle 16, 56, 36, 96."
Someone might be able to prove that the 2 sequences are identical...
Daniel.