OFFSET
1,2
COMMENTS
Terms that occur in positions given by A355822 may occur only a finite number of times in this sequence. Most of these seem to be in the singular equivalence classes, i.e., have unique values, apart from exceptions like pairs {6, 15}, {273, 1729}, (see the examples and the array A355926). In a coarser variant A355836 multiple such finite equivalence classes may coalesce together into several infinite equivalence classes.
LINKS
EXAMPLE
a(6) = a(15) [= 5 as allotted by the rgs-transform] because 15 = A003961(6) [i.e., 15 is in the same column in prime shift array A246278 as 6 is], and because A355442(6) = A355442(15) = 5.
PROG
(PARI)
up_to = 65537;
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; };
A348717(n) = if(1==n, 1, my(f = factor(n), k = primepi(f[1, 1])-1); for (i=1, #f~, f[i, 1] = prime(primepi(f[i, 1])-k)); factorback(f));
A003961(n) = { my(f = factor(n)); for(i=1, #f~, f[i, 1] = nextprime(f[i, 1]+1)); factorback(f); };
A276086(n) = { my(m=1, p=2); while(n, m *= (p^(n%p)); n = n\p; p = nextprime(1+p)); (m); };
v355835 = rgs_transform(vector(up_to, n, Aux355835(n)));
A355835(n) = v355835[n];
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jul 20 2022
STATUS
approved