

A304103


Restricted growth sequence transform of A304102, a filter sequence related to the proper divisors of n expressed in Fibonacci number system.


5



1, 2, 2, 3, 2, 4, 2, 5, 3, 4, 2, 6, 2, 5, 4, 7, 2, 8, 2, 6, 5, 5, 2, 9, 3, 4, 10, 11, 2, 12, 2, 6, 5, 13, 5, 14, 2, 13, 4, 9, 2, 15, 2, 11, 8, 10, 2, 16, 17, 18, 13, 6, 2, 19, 5, 20, 13, 5, 2, 21, 2, 13, 6, 22, 4, 23, 2, 24, 10, 25, 2, 26, 2, 10, 18, 27, 28, 12, 2, 29, 30, 13, 2, 31, 13, 32, 5, 33, 2, 34, 5, 35, 13, 5, 13, 21, 2, 36, 37, 38, 2, 39, 2, 9, 15
(list;
graph;
refs;
listen;
history;
text;
internal format)



OFFSET

1,2


COMMENTS

For all i, j: a(i) = a(j) => b(i) = b(j), where b can be any of {A000005, A293435, A304095 or A300836} for example.


LINKS

Antti Karttunen, Table of n, a(n) for n = 1..65537


PROG

(PARI)
\\ Needs also code from A304101.
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; };
write_to_bfile(start_offset, vec, bfilename) = { for(n=1, length(vec), write(bfilename, (n+start_offset)1, " ", vec[n])); }
A304102(n) = { my(m=1); fordiv(n, d, if(d<n, m *= prime(A304101(d)1))); (m); };
write_to_bfile(1, rgs_transform(vector(up_to, n, A304102(n))), "b304103.txt");


CROSSREFS

Cf. A293435, A304095, A300836, A304102.
Cf. also A300835, A304105, A305800.
Cf. A305793 (analogous filter for base 2).
Sequence in context: A236515 A318469 A300224 * A305983 A305813 A319355
Adjacent sequences: A304100 A304101 A304102 * A304104 A304105 A304106


KEYWORD

nonn


AUTHOR

Antti Karttunen, May 13 2018


STATUS

approved



