login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A305983
Filter sequence combining from all proper divisors d of n, the prime signature of 2d+1.
5
1, 2, 2, 3, 2, 4, 2, 5, 3, 4, 2, 6, 2, 7, 4, 8, 2, 9, 2, 10, 7, 4, 2, 11, 3, 12, 4, 10, 2, 13, 2, 10, 4, 7, 7, 14, 2, 7, 12, 15, 2, 13, 2, 16, 9, 4, 2, 17, 18, 19, 7, 20, 2, 13, 4, 21, 7, 4, 2, 22, 2, 23, 24, 25, 12, 26, 2, 27, 4, 28, 2, 29, 2, 23, 24, 27, 7, 30, 2, 31, 32, 4, 2, 33, 7, 7, 4, 34, 2, 35, 36, 10, 23, 7, 7, 37, 2, 38, 9, 39, 2, 28, 2, 40, 13
OFFSET
1,2
COMMENTS
Restricted growth sequence transform of A305982.
For all i, j: a(i) = a(j) => A305818(i) = A305818(j).
LINKS
PROG
(PARI)
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; };
A305982(n) = { my(m=1); fordiv(n, d, if((d<n), m *= prime(A305973(1+d)-1))); (m); }; \\ Needs also code from A305973.
v305983 = rgs_transform(vector(up_to, n, A305982(n)));
A305983(n) = v305983[n];
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jun 15 2018
STATUS
approved