login
A336935
Lexicographically earliest infinite sequence such that a(i) = a(j) => A007733(i) = A007733(j) and A278222(i) = A278222(j), for all i, j >= 1.
5
1, 1, 2, 1, 3, 2, 4, 1, 5, 3, 6, 2, 7, 4, 8, 1, 9, 5, 10, 3, 11, 6, 12, 2, 13, 7, 14, 4, 15, 8, 16, 1, 17, 9, 7, 5, 18, 10, 19, 3, 20, 11, 21, 6, 22, 12, 23, 2, 24, 13, 25, 7, 26, 14, 27, 4, 28, 15, 29, 8, 30, 16, 31, 1, 32, 17, 33, 9, 34, 7, 35, 5, 36, 18, 37, 10, 38, 19, 39, 3, 40, 20, 41, 11, 42, 21, 43, 6, 44, 22, 45, 12, 46, 23, 47, 2, 48, 24, 49, 13, 50
OFFSET
1,3
COMMENTS
Restricted growth sequence transform of the ordered pair [A007733(n), A278222(n)].
For all i, j: A324400(i) = A324400(j) => A003602(i) = A003602(j) => a(i) = a(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; };
A007733(n) = znorder(Mod(2, n/2^valuation(n, 2))); \\ From A007733
A005940(n) = { my(p=2, t=1); n--; until(!n\=2, if((n%2), (t*=p), p=nextprime(p+1))); t };
A046523(n) = { my(f=vecsort(factor(n)[, 2], , 4), p); prod(i=1, #f, (p=nextprime(p+1))^f[i]); }; \\ From A046523
A278222(n) = A046523(A005940(1+n));
Aux336935(n) = [A007733(n), A278222(n)];
v336935 = rgs_transform(vector(up_to, n, Aux336935(n)));
A336935(n) = v336935[n];
KEYWORD
nonn
AUTHOR
Antti Karttunen, Aug 10 2020
STATUS
approved