Can logarithms be applied to Modular arithmetic

AI Thread Summary
Logarithms cannot be directly applied to modular arithmetic due to the nature of equivalence classes in this system. In modular arithmetic, numbers are considered equivalent if they yield the same remainder when divided by n, which complicates the definition of functions like logarithms. While Fermat’s Little Theorem provides some insights, it leads to inconsistencies when attempting to apply logarithmic properties. However, the concept of discrete logarithms exists within modular arithmetic, though calculating them is complex. Overall, the application of traditional logarithms in modular contexts is not feasible.
l-1j-cho
Messages
104
Reaction score
0
I was just curious. I believe the answer would be no, but I don;t know why
 
Mathematics news on Phys.org
l-1j-cho said:
I was just curious. I believe the answer would be no, but I don;t know why

I'm not sure of your background with modular arithmetic, so I'll just start small...
We consider all numbers with the same remainder after dividing by n to be EQUIVALENT.
For example, 2 = 5 = 8 = 11 = 300000000000002 = -1 mod 3. (Here, the "triple" bar sign would be better than the double bar equality, but I'm avoiding markup)

So in the case of n = 3, there are 3 classes: [0], [1], and [2].
We define addition by [x] + [y] = [x + y].
BUT, we have to check that this really is a function (i.e. that it is well-defined).

Similarly, we would have to check for such a definition including logarithms, but I think you'll find that we can't get anything consistent to work.

0 = ln[1] = ln[4] = 2ln[2] = 2*.6931... ?
 
If that assumption were true...

Fermat’s Little Theorem states that
n^p ≡ n (mod p)
where n is an integer and p is a prime number
This implies
log (base n) n^p ≡ log (base n) n (mod p)
Therefore
p ≡ 1 (mod p)
In conclusion
0 ≡ 1 (mod p)

ha...
 
Last edited:
l-1j-cho said:
I was just curious. I believe the answer would be no, but I don;t know why

There's a thing called the discrete logarithm, that's been defined for modular arithmetic.
Calculating it is non-trivial.

From wikipedia: http://en.wikipedia.org/wiki/Discrete_logarithm

"a solution x of the equation gx = h is called a discrete logarithm to the base g of h"
 
Thread 'Video on imaginary numbers and some queries'
Hi, I was watching the following video. I found some points confusing. Could you please help me to understand the gaps? Thanks, in advance! Question 1: Around 4:22, the video says the following. So for those mathematicians, negative numbers didn't exist. You could subtract, that is find the difference between two positive quantities, but you couldn't have a negative answer or negative coefficients. Mathematicians were so averse to negative numbers that there was no single quadratic...
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Thread 'Unit Circle Double Angle Derivations'
Here I made a terrible mistake of assuming this to be an equilateral triangle and set 2sinx=1 => x=pi/6. Although this did derive the double angle formulas it also led into a terrible mess trying to find all the combinations of sides. I must have been tired and just assumed 6x=180 and 2sinx=1. By that time, I was so mindset that I nearly scolded a person for even saying 90-x. I wonder if this is a case of biased observation that seeks to dis credit me like Jesus of Nazareth since in reality...
Back
Top