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!)
A350065 Lexicographically earliest infinite sequence such that a(i) = a(j) => A350063(i) = A350063(j), for all i, j >= 1. 5
1, 2, 2, 3, 2, 3, 2, 3, 3, 4, 2, 3, 2, 3, 3, 5, 2, 3, 2, 3, 4, 5, 2, 3, 3, 5, 3, 5, 2, 5, 2, 3, 3, 5, 3, 6, 2, 3, 5, 5, 2, 3, 2, 3, 3, 7, 2, 3, 3, 4, 5, 3, 2, 3, 4, 3, 5, 8, 2, 3, 2, 5, 3, 8, 3, 5, 2, 5, 3, 3, 2, 5, 2, 5, 3, 5, 3, 5, 2, 3, 5, 5, 2, 8, 5, 9, 7, 7, 2, 8, 4, 5, 8, 10, 5, 5, 2, 4, 5, 5, 2, 8, 2, 3, 5 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Restricted growth sequence transform of A350063.
For all i, j >= 1: A305897(i) = A305897(j) => a(i) = a(j) => A324117(i) = A324117(j).
For all i, j >= 2: a(i) = a(j) => A342656(i) = A342656(j).
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..10000 (based on Hans Havermann's factorization of A156552)
PROG
(PARI)
up_to = 3000;
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; };
A000265(n) = (n>>valuation(n, 2));
A046523(n) = { my(f=vecsort(factor(n)[, 2], , 4), p); prod(i=1, #f, (p=nextprime(p+1))^f[i]); }; \\ From A046523
A156552(n) = { my(f = factor(n), p, p2 = 1, res = 0); for(i = 1, #f~, p = 1 << (primepi(f[i, 1]) - 1); res += (p * p2 * (2^(f[i, 2]) - 1)); p2 <<= f[i, 2]); res };
A350063(n) = if(1==n, 0, A046523(A000265(A156552(n))));
v350065 = rgs_transform(vector(up_to, n, A350063(n)));
A350065(n) = v350065[n];
(PARI)
\\ Version using the factorization file available at https://oeis.org/A156552/a156552.txt
v156552sigs = readvec("a156552.txt");
up_to = #v156552sigs;
A350063(n) = if(n<=2, n-1, my(es=v156552sigs[n][2]); if(n%2, es = vector(#es-1, i, es[1+i])); my(f=vecsort(es, , 4), p=0); prod(i=1, #f, (p=nextprime(p+1))^f[i]));
v350065 = rgs_transform(vector(up_to, n, A350063(n)));
A350065(n) = v350065[n]; \\ Antti Karttunen, Jan 29 2022
CROSSREFS
Cf. also A305897, A324117, A342656.
Sequence in context: A171135 A073855 A306312 * A077982 A331921 A185816
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jan 29 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 March 29 02:15 EDT 2024. Contains 371264 sequences. (Running on oeis4.)