OFFSET
1,3
COMMENTS
MATHEMATICA
rad[n_] := Times @@ FactorInteger[n][[All, 1]];
a[n_] := MinimalBy[Select[Range[3^n - 2], CoprimeQ[#, 3] &], rad[# (3^n - #)] &][[1]];
Reap[Do[Print[n, " ", an = a[n]]; Sow[an], {n, 1, 16}]][[2, 1]] (* Jean-François Alcover, Mar 27 2020 *)
PROG
CROSSREFS
KEYWORD
nonn,hard,more
AUTHOR
M. F. Hasler, Nov 13 2008
EXTENSIONS
a(17) from Jean-François Alcover, Mar 28 2020
a(18)-a(22) from Giovanni Resta, Mar 29 2020
STATUS
approved