Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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!)
A351080 Lexicographically earliest infinite sequence such that a(i) = a(j) => A324198(i) = A324198(j) and A351083(i) = A351083(j) for all i, j >= 0. 5
1, 2, 2, 3, 4, 2, 2, 5, 6, 3, 7, 2, 4, 2, 2, 8, 9, 2, 10, 2, 11, 3, 2, 2, 12, 13, 2, 3, 4, 2, 2, 2, 4, 3, 14, 15, 16, 2, 2, 17, 18, 2, 19, 2, 12, 8, 2, 2, 4, 19, 13, 3, 12, 2, 10, 20, 21, 3, 2, 2, 4, 2, 2, 22, 12, 2, 2, 2, 4, 3, 23, 2, 24, 2, 2, 25, 4, 26, 2, 2, 27, 3, 2, 2, 28, 20, 2, 3, 6, 2, 10, 29, 12, 3, 2, 2, 4 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
COMMENTS
Restricted growth sequence transform of the ordered pair [A324198(n), A351083(n)].
For all i, j: a(i) = a(j) => A351084(i) = A351084(j).
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; };
A327860(n) = { my(s=0, m=1, p=2, e); while(n, e = (n%p); m *= (p^e); s += (e/p); n = n\p; p = nextprime(1+p)); (s*m); };
A324198(n) = { my(m=1, p=2, orgn=n); while(n, m *= (p^min(n%p, valuation(orgn, p))); n = n\p; p = nextprime(1+p)); (m); };
A351083(n) = gcd(n, A327860(n));
Aux351080(n) = [A324198(n), A351083(n)];
v351080 = rgs_transform(vector(1+up_to, n, Aux351080(n-1)));
A351080(n) = v351080[1+n];
CROSSREFS
Cf. also A351085.
Sequence in context: A336889 A002122 A105689 * A187200 A352340 A117632
KEYWORD
nonn,easy,look
AUTHOR
Antti Karttunen, Feb 03 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 August 18 19:11 EDT 2024. Contains 375273 sequences. (Running on oeis4.)