|
|
A286543
|
|
Restricted growth sequence of A286542.
|
|
5
|
|
|
1, 2, 2, 3, 4, 3, 2, 5, 4, 6, 4, 5, 4, 3, 2, 7, 8, 6, 4, 6, 9, 6, 8, 7, 4, 6, 9, 5, 9, 3, 2, 10, 8, 11, 8, 6, 9, 6, 4, 12, 8, 13, 9, 12, 14, 11, 9, 10, 9, 6, 4, 12, 8, 13, 14, 7, 8, 13, 9, 5, 9, 3, 2, 15, 16, 11, 8, 11, 14, 11, 8, 12, 8, 13, 14, 6, 4, 6, 4, 17, 18, 11, 14, 13, 9, 13, 9, 6, 19, 20, 14, 11, 14, 13, 14, 15, 18, 13, 14, 6, 18, 6, 4, 6, 18, 11, 8
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,2
|
|
LINKS
|
|
|
PROG
|
(PARI)
allocatemem(2^30);
rgs_transform(invec) = { my(occurrences = Map(), outvec = vector(length(invec)), u=1); for(i=1, length(invec), if(mapisdefined(occurrences, invec[i]), my(pp = mapget(occurrences, invec[i])); outvec[i] = outvec[pp] , mapput(occurrences, 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])); }
A002110(n) = prod(i=1, n, prime(i));
A019565(n) = {my(j, v); factorback(Mat(vector(if(n, #n=vecextract(binary(n), "-1..1")), j, [prime(j), n[j]])~))}; \\ This function from M. F. Hasler
A046523(n) = { my(f=vecsort(factor(n)[, 2], , 4), p); prod(i=1, #f, (p=nextprime(p+1))^f[i]); }; \\ This function from Charles R Greathouse IV, Aug 17 2011
write_to_bfile(0, rgs_transform(vector(8192, n, A286542(n-1))), "b286543.txt");
|
|
CROSSREFS
|
|
|
KEYWORD
|
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|