login
A292259
Restricted growth sequence transform of A292258; filter constructed from the prime signatures of the sequence [n, floor(n/2), floor(n/4), ..., 1].
6
1, 2, 2, 3, 4, 5, 4, 6, 7, 8, 9, 10, 8, 8, 8, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 16, 21, 15, 17, 22, 17, 23, 24, 25, 25, 26, 27, 28, 28, 29, 30, 31, 32, 30, 30, 33, 34, 35, 36, 37, 38, 39, 32, 40, 41, 29, 39, 32, 33, 42, 43, 32, 30, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 54, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 65, 66, 62, 67, 61, 62
OFFSET
1,2
LINKS
PROG
(PARI)
up_to = 65535
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])); }
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
v101296 = rgs_transform(vector(up_to, n, A046523(n)));
A101296(n) = v101296[n];
A292258(n) = if(1==n, n, prime(A101296(n)-1) * A292258(n\2));
write_to_bfile(1, rgs_transform(vector(up_to, n, A292258(n))), "b292259.txt");
CROSSREFS
Cf. A292258.
Cf. A078349 (one of the matching sequences).
Sequence in context: A094457 A275495 A022820 * A241397 A331049 A350127
KEYWORD
nonn
AUTHOR
Antti Karttunen, Sep 22 2017
STATUS
approved