Post History
JavaScript, 44 bytes a=>g=n=>a.every(([p,q])=>(x=n*p/q)%1)?n:g(x) Try it online!
Answer
#1: Initial revision
# JavaScript, 44 bytes <!-- language-all: lang-javascript --> a=>g=n=>a.every(([p,q])=>(x=n*p/q)%1)?n:g(x) [Try it online!](https://tio.run/##JchRCoMwDADQ0wySkSmxE2GQ7iClH8XVsiFt1SHu9FXc14P3catb@vmdv7eYXr4MUpzoIFG0q/zq5x@AyTRZFA2bxGuuJ7wwPuMjwIalT3FJo6/GFGAAY@5tS0pZMszEp8R8oKj7Z3OeshahaxDLDg)