Almost Automorphic Number

24 9 3 = 15438 249 \Large 249^3 = 15438\underline{249}

An automorphic number is defined as a positive integer n n such that the trailing digits of n m n^m , where m m is a positive integer, is n n itself for all m > 0 m>0 .

Let us define an almost automorphic number as a number where n n only appears as the trailing digits of n m n^m for all odd m > 0 m>0 . How many almost automorphic numbers are less than 1000?


The answer is 18.

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.

1 solution

Patrick Corn
Jul 31, 2015

Relevant wiki: Euler's Theorem

Let d d be the number of digits of n n . Then n n is either almost automorphic or automorphic if and only if 1 0 d n ( n 2 k 1 ) 10^d | n(n^{2k}-1) for all positive k k . But this happens if and only if 1 0 d n ( n 2 1 ) 10^d|n(n^2-1) . (Similarly n n is automorphic if and only if 1 0 d n ( n 1 ) 10^d | n(n-1) .)

For d = 1 d = 1 it's not hard to see that there are five solutions, 1 , 4 , 5 , 6 , 9 1,4,5,6,9 . Three of these are automorphic, 1 1 , 5 5 , and 6 6 , so that's two almost automorphic one-digit numbers.

For d = 2 d = 2 we see that ( n 1 ) n ( n + 1 ) (n-1)n(n+1) is divisible by 25 25 and by 4 4 . The Chinese Remainder Theorem says that there are 9 9 solutions mod 100 100 : three possibilities for n n mod 25 25 and three possibilities mod 4 4 . These are 0 , 1 , 24 , 25 , 49 , 51 , 75 , 76 , 99 0,1,24,25,49,51,75,76,99 . After throwing out the first two, we get seven solutions. Two of these are automorphic, 25 25 and 76 76 . So that's five almost automorphic two-digit numbers.

For d = 3 d = 3 the technique is the same. There are 3 3 possibilities mod 125 125 and 5 5 mod 8 8 , so we get 15 15 numbers 0 , 1 , 125 , , 999 0,1, 125, \ldots, 999 . After throwing out the first two, we get thirteen solutions. Two of these are automorphic: 376 , 625 376, 625 ; so we get eleven almost automorphic three-digit numbers.

The total is therefore 2 + 5 + 11 = 18 2+5+11 = \fbox{18} .

I think that the answer is not aligned with what the question is.

Eg : 376 376 is an automorphic number. However, as per the definition of almost automorphic numbers, 37 6 2 376^2 should not have the trailing three digits as 376 376 . However, 37 6 2 = 141376 376^2=141376 .

Please rectify.

Janardhanan Sivaramakrishnan - 5 years, 10 months ago

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.

Patrick Corn - 5 years, 10 months ago

isn't 2 2 also almost automorphic??

2 5 = 3 2 2^5=3\underline{2}

Francisco Rodríguez - 5 years, 1 month ago

Log in to reply

2 3 = 8 , 2^3 = 8, so 2 2 is not almost automorphic. It must be the case that n m n^m ends with n n for all odd m . m.

Patrick Corn - 5 years, 1 month ago

The defininition for almost automorphic might be ambiguous, I read it in two possible ways:

  • The trailing digits must match only for odd m m : That seems to be the intended way and it aligns with the answer 18

  • The trailing digits must only match for odd m m (and may do anything for even m 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.

Carsten Meyer - 1 year, 1 month ago

1 pending report

Vote up reports you agree with

×

Problem Loading...

Note Loading...

Set Loading...