me, a 3 mod 4 prime, when the 1 mod 4 primes catch up to us: 😡😡🤬🤬🤬
Basic Question: 1 mod 4
when we talk about mod and reminder, what exactly are the reminders here, for example 3mod4 and -1mod4 how come the reminder is 3?
How come -7 mod 3 is 2?
How much is 17 mod 3?
17 mod 3 equals 2 since dividing 17 by 3 gives a quotient of 5 and a remainder of 2. The remainder is the result of the modulus operation. In simpler terms, 17 mod 3 = 2.
How to calculate modulo division?
To calculate modulo division: subtract the divisor from the dividend until the resultant is less than the divisor.
What are the components of modulo division?
The components of modulo division are dividend, divisor, quotient, and remainder. The remainder is the answer or end result of the operation.
Videos
Basic question here.
For numbers that are congruent to 1 mod 4, it's pretty easy to show that these always end up at a smaller number in just three steps since the initial 3x+1 calculation always results in a multiple of 4. Does this mean that all numbers congruent to 1 mod 4 will end up in the 4-2-1 loop?
Example: 33 - 100 - 50 - 25
when we talk about mod and reminder, what exactly are the reminders here, for example 3mod4 and -1mod4 how come the reminder is 3? is it about how much it left to reach the next integer number bigger integer or what, cuz for example here 3mod4 here is 3 so it's like it left only 1 to reach the next bigger integer the same for -1mod4?
I come from a computer science background and my mind is exploding rn from this.
In programming languages the % represents the modulo operation.
In most programming languages like C, Rust, Java, JavaScript -7 % 3 results in -1, this makes sense to me logically since if I have "negative 7 dollars" divided it across three people, each will get "-2 negative dollars" and "-1 negative dollar" will remain.
So how come in any calculators, and the few mathematics-friendly programming languages like Python and Haskell, -7 % 3 results in 2? Like logically speaking how could dividing a negative number result in a positive number, and where did the 2 even came from, from a logical standpoint?