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!)
A322317 Ordinal transform of A322316. 3
1, 1, 2, 1, 2, 1, 3, 1, 2, 3, 4, 1, 5, 4, 5, 1, 6, 2, 7, 3, 6, 7, 8, 1, 9, 8, 2, 4, 10, 2, 11, 1, 9, 10, 12, 1, 13, 11, 12, 3, 14, 3, 15, 5, 6, 13, 16, 1, 17, 14, 15, 7, 18, 2, 19, 4, 16, 17, 20, 3, 21, 18, 8, 1, 22, 4, 23, 9, 19, 20, 24, 1, 25, 21, 22, 10, 26, 5, 27, 2, 3, 23, 28, 4, 29, 24, 25, 5, 30, 5, 31, 11, 26, 27, 32, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
LINKS
PROG
(PARI)
up_to = 65537;
ordinal_transform(invec) = { my(om = Map(), outvec = vector(length(invec)), pt); for(i=1, length(invec), if(mapisdefined(om, invec[i]), pt = mapget(om, invec[i]), pt = 0); outvec[i] = (1+pt); mapput(om, invec[i], (1+pt))); outvec; };
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; };
A007814(n) = valuation(n, 2);
A007949(n) = valuation(n, 3);
A122841(n) = min(A007814(n), A007949(n));
A244417(n) = max(valuation(n, 2), valuation(n, 3));
v322316 = rgs_transform(vector(up_to, n, [A122841(n), A244417(n)]));
v322317 = ordinal_transform(v322316);
A322317(n) = v322317[n];
CROSSREFS
Cf. also A126760.
Sequence in context: A071956 A077767 A355319 * A263259 A137163 A344233
KEYWORD
nonn
AUTHOR
Antti Karttunen, Dec 04 2018
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 April 23 20:33 EDT 2024. Contains 371916 sequences. (Running on oeis4.)