← RoseCode

ROSECODE 281

Awesome algorithm

Philippe_57721 · Math ·


Given a vector A of rational numbers, we define the following transformation :
B={1×(A1A2),2×(A2A3),3×(A3A4),}

We repeat the process:
C={1×(B1B2),2×(B2B3),3×(B3B4),}

And so on ...

Consider now the vector
Z={B1,C1,D1,}

If A={11,12,13,14,}, find the first index i for which the denominator of Zi is greater than 1050.
Answer format: index,denominator
[My timing: < 1 sec]