login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A257874 Numbers n such that the largest prime divisor of n^4 + n^2 + 1 is equal to the largest prime divisor of (n+1)^4 + (n+1)^2 + 1. 1
3, 6, 8, 10, 12, 15, 17, 21, 24, 27, 31, 33, 38, 41, 43, 48, 50, 52, 54, 57, 59, 62, 66, 69, 71, 73, 75, 78, 80, 82, 85, 90, 93, 95, 97, 99, 101, 103, 105, 111, 115, 117, 119, 124, 127, 131, 133, 136, 138, 141, 143, 145, 147, 150, 153, 155, 157, 162, 164, 168 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
The sequence is infinite. Proof:
Let p(n) denote the largest prime divisor of n^4 + n^2 + 1 and let q(n) denote the largest prime divisor of n^2 + n + 1. Then p(n) = q(n^2), and from
n^4 + n^2 + 1 = (n^2+1)^2 - n^2 = (n^2-n+1)(n^2+n+1)= ((n-1)^2 + (n-1)+1)(n^2+n+1) it follows that p(n) = max{q(n),q(n-1)} for n>=2.
Keeping in mind that n^2-n+1 is odd, we have
gcd(n^2+n+1,n^2-n+1) = gcd(2n,n^2-n+1)= gcd(n,n^2-n+1)= 1.
Therefore q(n) is different from q(n-1).
To prove the result, it suffices to show that the set
S = {n in Z | n>=2 and q(n) > q(n-1) and q(n) > q(n+1)}
is infinite, since for each n in S one has
p(n) = max{q(n),q(n-1)} = q(n) = max{q(n),q(n+1)} = p(n+1).
Suppose on the contrary that S is finite. Since q(2) = 7 < 13 = q(3) and q(3) = 13 > 7 = q(4), the set S is nonempty. Since it is finite, we can consider its largest element, say m.
Note that it is impossible that q(m)>q(m+1)>q(m+2)>... because all these numbers are positive integers, so there exists a number k>=m such that q(k)<q(k+1) (recall that q(k) is different from q(k+1)). Next observe that it is impossible to have q(k)<q(k+1)<q(k+2)<... because q((k+1)^2) = p(k+1) = max{q(k),q(k+1)}, so let us take the smallest l >= k+1 such that q(l)>q(l+1). By the minimality of l, we have q(l-1)<q(l), so l is in S. Since l >= k + 1 > k >= m, this contradicts the maximality of m, and hence S is indeed infinite.
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
EXAMPLE
3 is in the sequence because 3^4+3^2+1 = 91 = 13*7 and 4^4+4^2+1 = 273 = 13*7*3, so 13 is the greatest prime factor of both expressions.
MAPLE
with(numtheory):for n from 1 to 400 do:x1:=n^4 + n^2 + 1:x2:=(n+1)^4 + (n+1)^2+1:y1:=factorset(x1):n1:=nops(y1):y2:=factorset(x2):n2:=nops(y2):if y1[n1]=y2[n2] then printf(`%d, `, n):else fi:od:
MATHEMATICA
fQ[n_]:=Last[FactorInteger[n^4+n^2+1]][[1]]==Last[FactorInteger[(n+1)^4+(n+1)^2+1]][[1]]; Select[Range[168], fQ[#]&] (* Ivan N. Ianakiev, Jun 11 2015 *)
PROG
(PARI) gpf(n)=if(n<4, return(n)); my(f=factor(n)[, 1]); f[#f]
is(n)=my(a=n^4+n^2+1, b=(n+1)^4 +(n+1)^2+1, g=gcd(a, b), p=gpf(g)); g>1 && p>=gpf(a/g) && p>=gpf(b/g) \\ Charles R Greathouse IV, May 11 2015
CROSSREFS
Sequence in context: A023983 A190058 A159061 * A180398 A128420 A099135
KEYWORD
nonn
AUTHOR
Michel Lagneau, May 11 2015
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 03:15 EDT 2024. Contains 371964 sequences. (Running on oeis4.)