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