← RoseCode

ROSECODE 152

A boring sequence

Philippe_57721 · Math ·

Let P(x) = x^19 + 6
Let G(n) = GCD( P(n), P(n+1))

The sequence { G(1), G(2), G(3), ... } seems constant and equal to 1 for an awful long time ...

What is the first n for which G(n) > 1?

Answer format : n
[My timing: < 5 sec]