Solving a Scheduling Problem with Diophantine Equations

  • Thread starter Thread starter lavoisier
  • Start date Start date
  • Tags Tags
    Scheduling
lavoisier
Messages
177
Reaction score
24
Hi everyone,
a problem that seems mathematical in nature came to my mind at work a few days ago, and I wonder if anyone can help me with it.

Basically, we are given a schedule of when certain biological assays take place, e.g. assay A will take place each even week of the year starting on week 2, and assay B will take place every 4 weeks starting on week 1.
It's relatively easy to write out the explicit cases:
A={2,4,6...}
B={1,5,9,13,17...}
What I wanted to know was on which weeks there were no assays. Again, easy enough to write it out:
no_assays={3,7,11,...}.
And whether A and B could happen on the same week. Clearly not, as A only happens on even weeks, whereas B only happens on odd weeks.

But I wanted to make this more systematic. I started by noting that A corresponded to a 2*n pattern, with n positive integer, and B to 2*m+1, with m positive integer or zero.
Then I wondered how I could derive the pattern for no_assays (of course 4*k-1, with k positive integer) just from the patterns for A and B, without writing out the explicit cases.
Maybe not in a simple case like this one, but in a more complicated one. E.g. if there were 3 assays A, B and C, with A on weeks 3*n+1, B on weeks 4*m, C on weeks 5*p, with n, m and p positive integers, how could I determine if+when+which assays happen on the same week, and if+when there are weeks with no assays?

Is there an 'official' approach one may use for this kind of problem? Maybe something related to Diophantine equations?

Thank you!
L
 
Mathematics news on Phys.org
If there would be an easy general approach you could use it to find prime numbers - and there is no easy way to find arbitrary prime numbers.

It is sufficient to consider all weeks up to the least common multiple of all periods, e.g. 4 in the first example and 60 in the second one. Although 60 weeks are more than a year, so basically you are testing each week anyway.
Sometimes it can be sufficient to check the intersection of (AB), (BC) and (AC), which gives 12, 15 and 20 weeks to check, so you save a bit compared to 52 checks. An additional trick: within those given lengths, the pairs will have a common exam week exactly once, and there are ways to calculate this week quickly.
 
Thank you both very much!
Much of the maths in the wikipedia article is above my level, but I think the algebraic solution by sequential substitution is something I could manage to use.
 
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...
Fermat's Last Theorem has long been one of the most famous mathematical problems, and is now one of the most famous theorems. It simply states that the equation $$ a^n+b^n=c^n $$ has no solutions with positive integers if ##n>2.## It was named after Pierre de Fermat (1607-1665). The problem itself stems from the book Arithmetica by Diophantus of Alexandria. It gained popularity because Fermat noted in his copy "Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos, et...
I'm interested to know whether the equation $$1 = 2 - \frac{1}{2 - \frac{1}{2 - \cdots}}$$ is true or not. It can be shown easily that if the continued fraction converges, it cannot converge to anything else than 1. It seems that if the continued fraction converges, the convergence is very slow. The apparent slowness of the convergence makes it difficult to estimate the presence of true convergence numerically. At the moment I don't know whether this converges or not.
Back
Top