#a way to calculate remainder of big numbers

70 messages · Page 1 of 1 (latest)

civic trellis
#

I'm currently self studying modular arithmeric, is there a way to calculate the remainder of big numbers? For example 2,000^2,000 mod 7, I tried something like factoring 2,000 into smaller numbers but idk if I'm going the right direction or not

plucky glenBOT
#
  1. Ask your question and show the work you've done so far. If you've posted a screenshot of a question, specify which part you need help with.
  2. Wait patiently for a helper to come along.
  3. Once someone helps you, say thank you and close the thread with:
    +close
    
  4. Feel free to nominate the person for helper of the week in #helper-nominations
  5. Do not ping the mods, unless someone is breaking the rules.
  6. If you're happy with the help you got here, and the server overall, you can contribute financially as well:
echo stream
civic trellis
#

That's what i remember it as the last time I looked it up

echo stream
civic trellis
#

I think so but I couldn't remember it well since that was like a month ago

#

That time I was just looking up random stuff that I got interested in

#

I'll watch an explanation again, then see if I can solve it on my own, thanks

#

@echo stream question

echo stream
#

Yes?

civic trellis
#

Am I suppose to apply the crt to solve it?

echo stream
civic trellis
#

For big numbers

#

Or do I watch it just to understand some stuff needed for solving it

echo stream
civic trellis
#

I see

echo stream
#

I am a bit rusty in crt as well, so I am also learning lol.

civic trellis
#

Oh thanks!

cold nacelle
# civic trellis Oh thanks!

It doesn't actually have anything to do with the Chinese Remainder Theorem. You need to learn Euler's Theorem, or its more restricted form Fermat's Little Theorem.

#

The Chinese Remainder Theorem is about systems of congruences, but we don't have a system here.

civic trellis
#

Oh

echo stream
#

Oh wait nvm I got it.

civic trellis
#

Ah a^p = a(mod p)

echo stream
#

Sorry for the mishap.

civic trellis
#

What do you mean

cold nacelle
civic trellis
cold nacelle
civic trellis
#

Huh?

cold nacelle
#

What are the sides here?

civic trellis
#

When I tried solving this stuff I just compare the left side with something else then exponent it like 5 congruence to 1 (mod 4)
So 5^3 congruence to 1^3 (mod4)

#

Does it not work here?

civic trellis
#

Wait I'm confused

#

5^n is the left side?

cold nacelle
#

What n? Where did n come from?

civic trellis
#

I just tried giving an example

#

One sec

#

Oh nevermind it's too big

cold nacelle
#

...too big to... have n or...???

civic trellis
cold nacelle
#

...why would it be congruent to that?

#

Also that still doesn't explain to me where n came from.

civic trellis
#

Isn't 2000 congruent to 5?

cold nacelle
#

And how can something to the power of n be "too big"?

#

"Too big" for what?

civic trellis
#

Nevermind

cold nacelle
#

Okay, look.

#

We have one thing.

#

2000^2000 mod 7.

#

It's not an equation.

#

it's not a congruence.

#

There's no "left side" or "right side".

#

It's just an expression.

#

We're evaluating the expression.

civic trellis
#

Oh

#

Is it ok to do something to the expression?

cold nacelle
#

Depends on what it is.

civic trellis
#

I did something like this

#

I think all I have to do is just use an exponent that makes it so the other side is 1,-1 but I'm not sure if it'll always work for big numbers

#

Thank you btw @cold nacelle @echo stream

odd pastureBOT
#

@civic trellis has given 1 rep to @echo stream @cold nacelle

cold nacelle
civic trellis