OFFSET
1,2
COMMENTS
This is also the restricted growth sequence transform of A073751, provided that quotient A004490(1+n)/A004490(n) is always prime, which is implied by a conjecture mentioned in Lagarias' paper. Note that the b-file of A073751 is computed based on the knowledge that the conjecture holds at least for the first 10^7 quotients.
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..10000 (computed from the b-file of A073751 provided by T. D. Noe)
J. C. Lagarias, An elementary problem equivalent to the Riemann hypothesis, arXiv:math/0008177 [math.NT], 2000-2001; Am. Math. Monthly 109 (#6, 2002), 534-543.
PROG
(PARI)
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; };
v073751 = readvec("b073751_to.txt"); \\ Prepared with gawk '{ print $2 }' < b073751.txt > b073751_to.txt
v342011 = rgs_transform(v073751);
A342011(n) = v342011[n];
for(n=1, #v342011, write("b342011.txt", n, " ", A342011(n)));
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Mar 08 2021
STATUS
approved
