OFFSET
0,2
LINKS
Antti Karttunen, Table of n, a(n) for n = 0..32768
PROG
(PARI)
allocatemem(2^30);
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])); }
A000265(n) = (n >> valuation(n, 2));
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
A292265(n) = { my(x = n+n+1, z = A019565(valuation(1+x, 2)), m = A000265(1+x)); while(m!=1, z *= A019565(valuation(x+m, 2)); m = A000265(x+m)); z; };
write_to_bfile(0, rgs_transform(vector(32769, n, A292265(n-1))), "b292266_upto32768.txt");
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Oct 02 2017
STATUS
approved