|
|
A336460
|
|
Lexicographically earliest infinite sequence such that a(i) = a(j) => f(i) = f(j), where f(n) = [A278222(n), A336158(n), A336466(n)], for all i, j >= 1.
|
|
6
|
|
|
1, 1, 2, 1, 3, 2, 4, 1, 5, 3, 6, 2, 7, 4, 8, 1, 3, 5, 9, 3, 10, 6, 11, 2, 12, 7, 13, 4, 14, 8, 15, 1, 16, 3, 17, 5, 18, 9, 19, 3, 20, 10, 21, 6, 22, 11, 23, 2, 24, 12, 25, 7, 26, 13, 27, 4, 28, 14, 29, 8, 30, 15, 31, 1, 32, 16, 33, 3, 34, 17, 35, 5, 18, 18, 22, 9, 36, 19, 37, 3, 38, 20, 39, 10, 40, 21, 41, 6, 42, 22, 43, 11, 44, 23, 45, 2, 7, 24, 46, 12, 47, 25, 48, 7, 49
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,3
|
|
COMMENTS
|
For all i, 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; };
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
A336466(n) = { my(f=factor(n)); prod(k=1, #f~, if(2==f[k, 1], 1, (A000265(f[k, 1]-1))^f[k, 2])); };
v336460 = rgs_transform(vector(up_to, n, Aux336460(n)));
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|