OFFSET
1,1
LINKS
Ivan Neretin, Table of n, a(n) for n = 1..10000
FORMULA
EXAMPLE
a(6) = 6 * LargestPrimeFactor(7) / LargestPrimeFactor(6) = 6 * 7 / 3 = 14
MATHEMATICA
a[1] := 2; a[n_] := n*FactorInteger[n + 1][[-1, 1]]/FactorInteger[n][[-1, 1]]; Table[a[n], {n, 70}] (* Ivan Neretin, May 20 2015 *)
PROG
(PARI) gpf(n) = vecmax(factor(n)[, 1]);
a(n) = if (n==1, 2, n*gpf(n+1)/gpf(n)); \\ Michel Marcus, Sep 08 2020
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Lior Manor, Dec 25 2006
STATUS
approved