login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A318309 Restricted growth sequence transform of A083254 (2*phi(n) - n). 2
1, 2, 1, 2, 3, 4, 5, 2, 3, 4, 6, 7, 8, 4, 1, 2, 9, 10, 11, 7, 3, 4, 12, 13, 9, 4, 6, 7, 14, 15, 16, 2, 17, 4, 18, 19, 20, 4, 6, 13, 21, 22, 23, 7, 3, 4, 24, 25, 20, 26, 18, 7, 27, 22, 28, 13, 9, 4, 29, 30, 31, 4, 6, 2, 32, 33, 34, 7, 35, 36, 37, 38, 39, 4, 5, 7, 40, 41, 42, 25, 14, 4, 43, 44, 40, 4, 28, 13, 45, 46, 47, 7, 14, 4, 48, 49, 50, 15, 12, 51 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
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; };
A083254(n) = (2*eulerphi(n)-n);
v318309 = rgs_transform(vector(up_to, n, A083254(n)));
A318309(n) = v318309[n];
CROSSREFS
Sequence in context: A086742 A133182 A071488 * A114733 A167516 A125931
KEYWORD
nonn
AUTHOR
Antti Karttunen, Aug 26 2018
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 19 21:09 EDT 2024. Contains 371798 sequences. (Running on oeis4.)