OFFSET
1,3
LINKS
Ivan Neretin, Table of n, a(n) for n = 1..10000
FORMULA
EXAMPLE
a(6) = 6 * LeastPrimeFactor(5) / LeastPrimeFactor(6) = 6 * 5 / 2 = 15
MAPLE
N:= 1000: # to get a(1) to a(n)
a[1]:= 1: a[2]:= 1:
b:= 2:
for n from 3 to N do
c:= min(numtheory:-factorset(n));
a[n]:= n*b/c;
b:= c;
od:
seq(a[n], n=1..N); # Robert Israel, May 20 2015
MATHEMATICA
a[1] := 1; a[2] := 1; a[n_] := n*FactorInteger[n - 1][[1, 1]]/FactorInteger[n][[1, 1]]; Table[a[n], {n, 70}] (* Ivan Neretin, May 20 2015 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Lior Manor, Dec 25 2006
STATUS
approved