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!)
A326195 Number of iterations of x -> A009195(x) needed to reach 1 when starting from x = n, where A009195(x) = gcd(x, phi(x)). 5

%I #14 Dec 21 2022 16:25:00

%S 0,1,1,2,1,2,1,3,2,2,1,3,1,2,1,4,1,3,1,3,2,2,1,4,2,2,3,3,1,2,1,5,1,2,

%T 1,4,1,2,2,4,1,3,1,3,2,2,1,5,2,3,1,3,1,4,2,4,2,2,1,3,1,2,3,6,1,2,1,3,

%U 1,2,1,5,1,2,2,3,1,3,1,5,4,2,1,4,1,2,1,4,1,3,1,3,2,2,1,6,1,3,2,4,1,2,1,4,2

%N Number of iterations of x -> A009195(x) needed to reach 1 when starting from x = n, where A009195(x) = gcd(x, phi(x)).

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

%F a(1) = 0; for n > 1, a(n) = 1 + a(A009195(n)).

%F a(n) < A326196(n).

%t Table[Length[NestWhileList[GCD[#,EulerPhi[#]]&,n,#>1&]]-1,{n,110}] (* _Harvey P. Dale_, Dec 21 2022 *)

%o (PARI) A326195(n) = if(1==n,0,1+A326195(gcd(n,eulerphi(n))));

%Y Cf. A000010, A009195, A326194, A326196.

%K nonn

%O 1,4

%A _Antti Karttunen_, Aug 24 2019

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 May 2 11:52 EDT 2024. Contains 372196 sequences. (Running on oeis4.)