A245486 Product of the greatest prime factor of n and the greatest prime factor of n+1.
2, 6, 6, 10, 15, 21, 14, 6, 15, 55, 33, 39, 91, 35, 10, 34, 51, 57, 95, 35, 77, 253, 69, 15, 65, 39, 21, 203, 145, 155, 62, 22, 187, 119, 21, 111, 703, 247, 65, 205, 287, 301, 473, 55, 115, 1081, 141, 21, 35, 85, 221, 689, 159, 33, 77, 133, 551, 1711, 295, 305
Offset: 1
Links
- Robert Israel, Table of n, a(n) for n = 1..10000
Programs
-
Maple
gpf:= n -> max(numtheory:-factorset(n)): gpf(1):= 1: seq(gpf(n)*gpf(n+1),n=1..100); # Robert Israel, Jul 24 2014
-
Mathematica
gpf[n_] := FactorInteger[n][[-1, 1]]; f[n_] := gpf[n] gpf[n + 1]; Array[f, 60] (* Robert G. Wilson v, Jul 23 2014 *) Times@@@Partition[Table[FactorInteger[n][[-1,1]],{n,100}],2,1] (* Harvey P. Dale, Sep 24 2017 *)
-
PARI
gpf(n)=my(ps);if(n<=1,n,ps=factor(n)[,1]~;ps[#ps]) a(n) = gpf(n)*gpf(n+1)
Comments