OFFSET
1,2
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..8191
FORMULA
MATHEMATICA
With[{nn = 64}, Block[{s = Function[s, Table[Position[Keys@ s, k_ /; MemberQ[k, n]][[1, 1]], {n, nn}]]@ Map[#1 -> #2 & @@ # &, Transpose@ {Values@ #, Keys@ #}] &@ PositionIndex@ Table[Times @@ MapIndexed[Prime[First@ #2]^#1 &, Sort[FactorInteger[n][[All, -1]], Greater]] - Boole[n == 1], {n, nn}], a}, a[n_] := a[n] = If[n == 1, 1, Prime[s[[n]] - 1]*a[Floor[n/2]]]; Array[a, nn]]] (* Michael De Vlieger, Sep 22 2017 *)
PROG
(PARI)
up_to = 8191
rgs_transform(invec) = { my(om = Map(), outvec = vector(length(invec)), u=1); for(i=1, length(invec), if(mapisdefined(om, invec[i]), my(pp = mapget(om, invec[i])); outvec[i] = outvec[pp] , mapput(om, invec[i], i); outvec[i] = u; u++ )); outvec; };
A046523(n) = { my(f=vecsort(factor(n)[, 2], , 4), p); prod(i=1, #f, (p=nextprime(p+1))^f[i]); }; \\ This function from Charles R Greathouse IV, Aug 17 2011
v101296 = rgs_transform(vector(up_to, n, A046523(n)));
A101296(n) = v101296[n];
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Sep 22 2017
STATUS
approved