login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A355832 Lexicographically earliest infinite sequence such that a(i) = a(j) => A354347(i) = A354347(j) for all i, j >= 1. 3
1, 2, 2, 2, 2, 1, 2, 2, 3, 1, 2, 1, 2, 1, 1, 4, 2, 5, 2, 1, 6, 1, 2, 1, 7, 6, 3, 1, 2, 2, 2, 8, 1, 1, 2, 9, 2, 1, 1, 10, 2, 11, 2, 2, 3, 6, 2, 12, 3, 13, 6, 11, 2, 14, 1, 10, 1, 1, 2, 2, 2, 1, 15, 16, 2, 2, 2, 1, 1, 10, 2, 17, 2, 1, 18, 19, 2, 11, 2, 20, 3, 1, 2, 10, 1, 6, 1, 21, 2, 14, 1, 22, 1, 23, 2, 24, 2, 9, 3, 25, 2, 1, 2, 26, 26 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Restricted growth sequence transform of A354347, which is the Dirichlet inverse of A345000(n) = gcd(A003415(n), A003415(A276086(n))).
LINKS
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; };
DirInverseCorrect(v) = { my(u=vector(#v)); u[1] = (1/v[1]); for(n=2, #v, u[n] = (-u[1]*sumdiv(n, d, if(d<n, v[n/d]*u[d], 0)))); (u) }; \\ Compute the Dirichlet inverse of the sequence given in input vector v.
A003415(n) = if(n<=1, 0, my(f=factor(n)); n*sum(i=1, #f~, f[i, 2]/f[i, 1]));
A276086(n) = { my(m=1, p=2); while(n, m *= (p^(n%p)); n = n\p; p = nextprime(1+p)); (m); };
A345000(n) = gcd(A003415(n), A003415(A276086(n)));
v354347 = DirInverseCorrect(vector(up_to, n, A345000(n)));
v355832 = rgs_transform(v354347);
A355832(n) = v355832[n];
CROSSREFS
Sequence in context: A063982 A318882 A327160 * A055020 A052435 A094701
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jul 19 2022
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 23 19:18 EDT 2024. Contains 374553 sequences. (Running on oeis4.)