login
A324196
Lexicographically earliest sequence such that a(i) = a(j) => A324195(i) = A324195(j) for all i, j >= 1.
5
1, 2, 3, 4, 5, 4, 6, 7, 8, 9, 10, 7, 11, 12, 8, 13, 14, 7, 15, 13, 16, 17, 18, 13, 19, 20, 21, 22, 23, 7, 24, 25, 26, 27, 19, 13, 28, 29, 30, 25, 31, 32, 33, 34, 21, 35, 36, 25, 37, 38, 39, 40, 41, 13, 42, 43, 44, 45, 46, 13, 47, 48, 49, 43, 50, 51, 52, 53, 54, 38, 55, 25, 56, 57, 21, 58, 37, 59, 60, 43, 49, 61, 62, 25, 63, 64, 65, 66, 67, 13, 68, 69, 70, 71, 72, 43
OFFSET
1,2
COMMENTS
Restricted growth sequence transform of A324195.
For all i, j: a(i) = a(j) => A324197(i) = A324197(j) => A324190(i) = A324190(j).
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; };
A061395(n) = if(1==n, 0, primepi(vecmax(factor(n)[, 1])));
A297167(n) = if(1==n, 0, (A061395(n) + (bigomega(n)-omega(n)) - 1));
A297112(n) = if(1==n, 0, 2^A297167(n));
A324195(n) = { my(v=0); fordiv(n, d, v = bitor(v, A297112(d))); (v); };
v324196 = rgs_transform(vector(up_to, n, A324195(n)));
A324196(n) = v324196[n];
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Feb 20 2019
STATUS
approved