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!)
A339874 Lexicographically earliest infinite sequence such that a(i) = a(j) => f(i) = f(j), where f(n) = A052126(n) for n > 1, and f(1) = 0. 1
1, 2, 2, 3, 2, 3, 2, 4, 5, 3, 2, 4, 2, 3, 5, 6, 2, 7, 2, 4, 5, 3, 2, 6, 8, 3, 9, 4, 2, 7, 2, 10, 5, 3, 8, 11, 2, 3, 5, 6, 2, 7, 2, 4, 9, 3, 2, 10, 12, 13, 5, 4, 2, 14, 8, 6, 5, 3, 2, 11, 2, 3, 9, 15, 8, 7, 2, 4, 5, 13, 2, 16, 2, 3, 17, 4, 12, 7, 2, 10, 18, 3, 2, 11, 8, 3, 5, 6, 2, 14, 12, 4, 5, 3, 8, 15, 2, 19, 9, 20, 2, 7, 2, 6, 17 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
For all i, j:
A305800(i) = A305800(j) => a(i) = a(j),
a(i) = a(j) => A001222(i) = A001222(j),
a(i) = a(j) => A322826(i) = A322826(j).
LINKS
FORMULA
a(1) = 1; for n > 1, a(n) = 1 + A322826(n).
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; };
A052126(n) = if(1==n, n, (n/vecmax(factor(n)[, 1])));
Aux339874(n) = if(1==n, 0, A052126(n));
v339874 = rgs_transform(vector(up_to, n, Aux339874(n)));
A339874(n) = v339874[n];
CROSSREFS
Sequence in context: A054030 A374201 A336311 * A134740 A054714 A369032
KEYWORD
nonn
AUTHOR
Antti Karttunen, Dec 25 2020
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 8 06:24 EDT 2024. Contains 374148 sequences. (Running on oeis4.)