2 4 9 3 = 1 5 4 3 8 2 4 9
An automorphic number is defined as a positive integer n such that the trailing digits of n m , where m is a positive integer, is n itself for all m > 0 .
Let us define an almost automorphic number as a number where n only appears as the trailing digits of n m for all odd m > 0 . How many almost automorphic numbers are less than 1000?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
I think that the answer is not aligned with what the question is.
Eg : 3 7 6 is an automorphic number. However, as per the definition of almost automorphic numbers, 3 7 6 2 should not have the trailing three digits as 3 7 6 . However, 3 7 6 2 = 1 4 1 3 7 6 .
Please rectify.
Log in to reply
Automorphic numbers are not almost automorphic. So I count up numbers that are one or the other, and then throw out the ones that are automorphic, like 376.
Log in to reply
2 3 = 8 , so 2 is not almost automorphic. It must be the case that n m ends with n for all odd m .
The defininition for almost automorphic might be ambiguous, I read it in two possible ways:
The trailing digits must match only for odd m : That seems to be the intended way and it aligns with the answer 18
The trailing digits must only match for odd m (and may do anything for even m ): By this logic, automorphic implies almost automorphic and the answer should be 25 (18 + 7 discarded solutions)
It might be that I'm nitpicking here and overlooking something in the definition. The question was really fun to think about, it would be sad if people got stumped by the phrasing of the definition.
Problem Loading...
Note Loading...
Set Loading...
Relevant wiki: Euler's Theorem
Let d be the number of digits of n . Then n is either almost automorphic or automorphic if and only if 1 0 d ∣ n ( n 2 k − 1 ) for all positive k . But this happens if and only if 1 0 d ∣ n ( n 2 − 1 ) . (Similarly n is automorphic if and only if 1 0 d ∣ n ( n − 1 ) .)
For d = 1 it's not hard to see that there are five solutions, 1 , 4 , 5 , 6 , 9 . Three of these are automorphic, 1 , 5 , and 6 , so that's two almost automorphic one-digit numbers.
For d = 2 we see that ( n − 1 ) n ( n + 1 ) is divisible by 2 5 and by 4 . The Chinese Remainder Theorem says that there are 9 solutions mod 1 0 0 : three possibilities for n mod 2 5 and three possibilities mod 4 . These are 0 , 1 , 2 4 , 2 5 , 4 9 , 5 1 , 7 5 , 7 6 , 9 9 . After throwing out the first two, we get seven solutions. Two of these are automorphic, 2 5 and 7 6 . So that's five almost automorphic two-digit numbers.
For d = 3 the technique is the same. There are 3 possibilities mod 1 2 5 and 5 mod 8 , so we get 1 5 numbers 0 , 1 , 1 2 5 , … , 9 9 9 . After throwing out the first two, we get thirteen solutions. Two of these are automorphic: 3 7 6 , 6 2 5 ; so we get eleven almost automorphic three-digit numbers.
The total is therefore 2 + 5 + 1 1 = 1 8 .