Question: What is the equivalent fraction of the expression below?
(8^4+64)(16^4+64)(24^4+64)(32^4+64)(40^4+64)(48^4+64)(56^4+64)(64^4+64)
----------------------------------------------------------------------------------------
(4^4+64)(12^4+64)(20^4+64)(28^4+64)(36^4+64)(44^4+64)(52^4+64)(60^4+64)
(84+64)(164+64)(244+64)(324+64)(404+64)(484+64)(564+64)(644+64)(44+64)(124+64)(204+64)(284+64)(364+64)(444+64)(524+64)(604+64)
(84+64)(164+64)(244+64)(324+64)(404+64)(484+64)(564+64)(644+64)(44+64)(124+64)(204+64)(284+64)(364+64)(444+64)(524+64)(604+64)
Answer: 545
Solved using the script below:
console.log("********************************");
function func(x){
return Math.pow(x,4)+64;
}
var numproduct=1;
for(var i=8; i<=64; i+=8){
var temp = func(i);
console.log(i+" "+temp);
numproduct *= temp;
}
var denproduct=1;
for(var i=4; i<=60; i+=8){
var temp = func(i);
console.log(i+" "+temp);
denproduct *= temp;
}
console.log(numproduct/denproduct);
No comments:
Post a Comment