- #1
Nec
- 50
- 0
I have an integer A and a possitive odd integer B, can you tell me how to find a nonnegative integer C such that C<2^A and 1+BC=0(mod 2^A) ?
?
?
Sorry, I don't remember how to solve Diophantine equations off the top of my head. Anyways, where's the brain teaser?Nec said:I have an integer A and a possitive odd integer B, can you tell me how to find a nonnegative integer C such that C<2^A and 1+BC=0(mod 2^A)
As C is bounded, I would use a loopNec said:I have an integer A and a possitive odd integer B, can you tell me how to find a nonnegative integer C such that C<2^A and 1+BC=0(mod 2^A) ?
?
CLOCK-->---------(E)->COUNTER(C) REGISTER(B)
E | | |
^ | | |
| | v v
| ----(E)------------>MULTIPLiER
| |
| |
-----------<-----------------------(AND)
I already put you into my list of top 10 ! --smile--Gokul43201 said:If you have A = 4, 2^A = 16.
Any odd B is 4k+1 or 4k-1. Choose C to be the other of the pair.
So, 1+BC = 1+ (4k+1)(4k-1) = 16k^2 == 0 (mod 16)
Looking for a general solution for all A.
A non-negative integer is a whole number that is equal to or greater than zero. It is often denoted as "ℕ₀" in mathematical notation.
Non-negative integers are commonly used in various mathematical and scientific applications, such as counting, measuring, and representing data. Therefore, it is important to search for them in order to accurately solve problems and make meaningful conclusions.
To search for non-negative integers, you can use various mathematical and computational methods, such as counting, sorting, and filtering. Additionally, you can also use programming languages, such as Python and Java, to write algorithms that can efficiently search for these numbers.
Some examples of non-negative integers include 0, 1, 2, 3, 4, 5, 6, and so on. These numbers can also be used to represent quantities, ages, temperatures, and other numerical values.
No, by definition, non-negative integers cannot be negative. However, they can be equal to zero, which is considered a neutral or neutralizing value in many mathematical operations.