# Terms 1 - 65537 in https://oeis.org/A323884/a323884.txt # This b-file was computed by Antti Karttunen, 2019-02-08 # in GP/PARI CALCULATOR Version 2.9.4 (released) amd64 running linux (x86-64/GMP-6.1.2 kernel) 64-bit version, compiled: Dec 19 2017, gcc version 7.3.0 (Ubuntu 7.3.0-1ubuntu1), threading engine: pthread # with the following program: # # default(parisizemax,2^31); # 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; }; # A007814(n) = valuation(n,2); # A007949(n) = valuation(n,3); # v322026 = rgs_transform(vector(up_to, n, [A007814(n), A007949(n)])); # A322026(n) = v322026[n]; # DirInverse(v) = { my(u=vector(#v)); u[1] = (1/v[1]); for(n=2, #v, u[n] = -sumdiv(n, d, if(d