interview question

Sarj

Just to make your post clear, I think by statements you actually meant definitions. Not every statement is an iff.

yes, you are correct. I meant definitions

pruse

One of the most commonly forgotten things about mathematics is that all statements are if and only if statements. This is one of the very first things that my number theory professor reminded us of.

By definition, a number is a prime power if it is a positive integer power of a prime number. This means that we take a prime number, raise it to some power, and the resulting number is a prime power. So if we let n equal some positive integer, then raising a prime number to n, will result in a prime power.

For example:
2 is a prime power, as 2^1 = 2
4 is a prime power, as 2^2 = 4
8 is a prime power, as 2^3 = 8
16 is a prime power, as 2^4 = 16

This side is easy to see. Let’s look at another statement that we can make about prime powers. If we let n denote some positive integer, then a number is a prime power only if we can raise that number to the power of 1/n and come to a prime number.

For example:
2^(1/1)= 2
4^(1/2)= 2
8^(1/3)= 2
16^(1/4) = 2

Let’s take a look at your claim that 1 should be included as a prime power. We can raise any prime number to 0 and arrive at 1.
2^0 = 1

How do we fulfill the only if statement? Let’s examine the number 16 for a minute. We saw that:
2^4 = 16
16^(1/4) = 2

If we follow the same logic structure, then we should be able to do the same when we raise 2, or any prime number (or any number) to a power. Let’s try out your statement that 1 should be included because we can raise any number to zero and get 1.
2^0 = 1
1^(1/0) = undefined

If your proposition was correct, we should have been able to raise 1^(1/0) and come back to 2. But we can’t. In fact, 1 raised to any power is just 1. And 1 is not a prime number.

This argument is lengthy, and might fool a lot of people, but unfortunately doesn't make any sense.

Sarj

This argument is lengthy, and might fool a lot of people, but unfortunately doesn't make any sense.

I see where you are coming from. Let me simplify:

Let n = any number
Let p = some prime number
Let q = some prime number
Let j = some integer
Let k = some integer

By definition, in order for a number, n, to be a prime power, the number must be a positive integer that can only be divided by one prime number. We are talking number theory here, so the previous statement means that:

p|n = j

Also by definition, a number that is a prime power must be of the form:
n = p^k

If we let k = 0
Then: n = p^0 = 1
By definition, 1 is not a prime number
q does not divide 1
Therefore, 1 is not a prime power.

Replies
2
Views
907
Replies
34
Views
8K
Replies
0
Views
399
Replies
1
Views
982
Replies
13
Views
5K