

A295876


Restricted growth sequence transform of A023900, Product_{pn} (1p).


4



1, 2, 3, 2, 4, 5, 6, 2, 3, 7, 8, 5, 9, 10, 11, 2, 12, 5, 13, 7, 14, 15, 16, 5, 4, 14, 3, 10, 17, 18, 19, 2, 20, 21, 22, 5, 23, 24, 22, 7, 25, 9, 26, 15, 11, 27, 28, 5, 6, 7, 29, 14, 30, 5, 31, 10, 32, 33, 34, 18, 35, 36, 14, 2, 37, 38, 39, 21, 40, 41, 42, 5, 43, 32, 11, 24, 44, 41, 45, 7, 3, 31, 46, 9, 47, 48, 49, 15, 50, 18, 51, 27, 44, 52, 51, 5, 53, 10
(list;
graph;
refs;
listen;
history;
text;
internal format)



OFFSET

1,2


COMMENTS

For all i, j:
a(i) = a(j) => A092248(i) = A092248(j).
a(i) = a(j) => A295877(i) = A295877(j).


LINKS

Antti Karttunen, Table of n, a(n) for n = 1..65536


PROG

(PARI)
allocatemem(2^30);
up_to = 65536;
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; };
write_to_bfile(start_offset, vec, bfilename) = { for(n=1, length(vec), write(bfilename, (n+start_offset)1, " ", vec[n])); }
A023900(n) = sumdivmult(n, d, d*moebius(d)); \\ This function from Charles R Greathouse IV, Sep 09 2014
write_to_bfile(1, rgs_transform(vector(up_to, n, A023900(n))), "b295876.txt");


CROSSREFS

Cf. A023900, A092248, A295877.
Sequence in context: A008666 A240854 A286621 * A322590 A325381 A323898
Adjacent sequences: A295873 A295874 A295875 * A295877 A295878 A295879


KEYWORD

nonn


AUTHOR

Antti Karttunen, Nov 29 2017


STATUS

approved



