|
|
A318837
|
|
Restricted growth sequence transform of A318836.
|
|
3
|
|
|
1, 2, 2, 2, 2, 3, 2, 3, 3, 4, 2, 5, 2, 6, 7, 8, 2, 9, 2, 7, 10, 11, 2, 12, 4, 13, 9, 10, 2, 14, 2, 15, 16, 17, 18, 19, 2, 20, 21, 22, 2, 23, 2, 16, 24, 25, 2, 26, 6, 27, 28, 21, 2, 29, 30, 31, 32, 33, 2, 34, 2, 35, 36, 37, 38, 39, 2, 28, 40, 41, 2, 42, 2, 43, 44, 32, 45, 46, 2, 47, 29, 48, 2, 49, 50, 51, 52, 53, 2, 54, 55, 40, 56, 57, 58, 59, 2, 60, 61, 44, 2
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
LINKS
|
|
|
FORMULA
|
|
|
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; };
A007431(n) = sumdiv(n, d, moebius(n/d)*eulerphi(d));
v318837 = rgs_transform(vector(up_to, n, A318836(n)));
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|