spikenigma
- 61
- 0
hello,
I'm interested in non-iteratative modulous calculation. As in, I would like to calculate the number of steps one has to take to reach the desired answer without an iterative set of calculations of any kind
(i.e. not
a+b+ b+b+b+b+b = answer
or
a+b = answer? - nope
a+2b = answer? - nope
a+3b = answer? - nope
a+4b = answer? - yes!
)
here are three varied examples to illustrate my problem
Example one:
The time starts at 12:00 (a 24 hour clock) and I check the clock every 43mins.
I want to know how to calculate how many checks I will have made when I catch the clock and it shows 12:15
(the answer is 1006 checks but how would I calculate it with a general rule?)
Example two:
f(1) = 19x
f(2) = 30x + 1
I need to calculate the first integer that is in both functions
(the answer is 361, f1(x) = 19, f2(x) = 12)
how would I calculate it with a general rule?
Example three:
f(1) = 9x
f(2) = 13x + 1
(the answer is 27, f1(x) = 3, f2(x) = 2. How would I calculate it?)
thanks in advance
I'm interested in non-iteratative modulous calculation. As in, I would like to calculate the number of steps one has to take to reach the desired answer without an iterative set of calculations of any kind
(i.e. not
a+b+ b+b+b+b+b = answer
or
a+b = answer? - nope
a+2b = answer? - nope
a+3b = answer? - nope
a+4b = answer? - yes!
)
here are three varied examples to illustrate my problem
Example one:
The time starts at 12:00 (a 24 hour clock) and I check the clock every 43mins.
I want to know how to calculate how many checks I will have made when I catch the clock and it shows 12:15
(the answer is 1006 checks but how would I calculate it with a general rule?)
Example two:
f(1) = 19x
f(2) = 30x + 1
I need to calculate the first integer that is in both functions
(the answer is 361, f1(x) = 19, f2(x) = 12)
how would I calculate it with a general rule?
Example three:
f(1) = 9x
f(2) = 13x + 1
(the answer is 27, f1(x) = 3, f2(x) = 2. How would I calculate it?)
thanks in advance