OFFSET
1,2
LINKS
PROG
(PARI)
up_to = 100000;
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; };
A034386(n) = prod(i=1, primepi(n), prime(i));
Aux329608(n) = if((n%2)&&isprime(n), 0, A329605(n));
v329608 = rgs_transform(vector(up_to, n, Aux329608(n)));
A329608(n) = v329608[n];
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Nov 18 2019
STATUS
approved