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!)
A296080 Restricted growth sequence transform of A289625(1+phi(n)), where phi = A000010, Euler totient function. 3

%I #8 Dec 06 2017 08:10:10

%S 1,1,2,2,3,2,4,3,4,3,5,3,6,4,4,4,7,4,8,4,6,5,9,4,10,6,8,6,11,4,12,7,

%T 10,7,13,6,14,8,13,7,15,6,16,10,13,9,17,7,16,10,18,13,19,8,15,13,14,

%U 11,20,7,21,12,14,18,16,10,22,18,23,13,24,13,25,14,15,14,21,13,26,18,27,15,28,13,29,16,30,15,31,13,25,23,21,17,25,18,32,16,21,15

%N Restricted growth sequence transform of A289625(1+phi(n)), where phi = A000010, Euler totient function.

%H Antti Karttunen, <a href="/A296080/b296080.txt">Table of n, a(n) for n = 1..65537</a>

%o (PARI)

%o allocatemem(2^30);

%o up_to = 65537;

%o rgs_transform(invec) = { my(occurrences = Map(), outvec = vector(length(invec)), u=1); for(i=1, length(invec), if(mapisdefined(occurrences,invec[i]), my(pp = mapget(occurrences, invec[i])); outvec[i] = outvec[pp] , mapput(occurrences,invec[i],i); outvec[i] = u; u++ )); outvec; };

%o write_to_bfile(start_offset,vec,bfilename) = { for(n=1, length(vec), write(bfilename, (n+start_offset)-1, " ", vec[n])); }

%o A289625(n) = { my(m=1,p=2,v=znstar(n)[2]); for(i=1,length(v),m *= p^v[i]; p = nextprime(p+1)); (m); };

%o write_to_bfile(1,rgs_transform(vector(up_to,n,A289625(1+eulerphi(n)))),"b296080.txt");

%Y Cf. A000010, A039649, A289625, A289626, A296078.

%Y Cf. A039650.

%K nonn

%O 1,3

%A _Antti Karttunen_, Dec 05 2017

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 25 03:15 EDT 2024. Contains 371964 sequences. (Running on oeis4.)