Power Full Integers

We will call a positive integer N N powerful if a 2 N 1 ( m o d N ) a^{2N}\equiv 1 \pmod N for all integers a a that are coprime to N . N. How many odd three-digit numbers are powerful?

Note: You may find it useful to refer to this List of Primes .


The answer is 9.

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

Jack D'Aurizio
Apr 4, 2014

Exaustive search gives that there are only 10 odd numbers N [ 100 , 999 ] N\in[100,999] such that 4 N 1 ( m o d N ) 4^N\equiv 1\pmod{N} ; they are all multiples of 3: 147 , 171 , 189 , 243 , 441 , 513 , 567 , 657 , 729 , 903 147,171,189,243,441,513,567,657,729,903 . By testing them one by one I found that only 657 fails to be a "half-Carmicheal" number.

There is a non-exhaustive search to this problem, which requires you to understand the underlying structure of the problem. As a hint, the start of the solution is:

Suppose p p is any (odd) prime factor of N . N. Because the multiplicative group modulo p p is cyclic, there exists some integer g , g, coprime to p p , such that g k 1 ( m o d p ) g^k\equiv 1 \pmod p if and only if k k is a multiple of p 1 p-1 (aka primitive element theorem). Therefore, for any powerful N N and for any of its prime factors p p , we have p 1 2 N p-1 \mid 2N , which is a necessary and sufficient condition.

You then continue from here, making observations as to what prime factors are valid. For example, you can show that p 3 ( m o d 4 ) p \equiv 3 \pmod{4} , and p 11 p \neq 11 .

@Daniel Liu Here's a problem that uses the primitive element theorem.

Calvin Lin Staff - 6 years, 9 months ago

No simpler way?

Krishna Ar - 6 years, 12 months ago

Log in to reply

@Calvin Lin

milind prabhu - 6 years, 9 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...