OFFSET
1,3
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
Starting with n = 6, a(6)=5 iterations are needed because :
f(6) = 6 - phi(bigomega(6)) = 6 - phi(2) = 6 - 1 = 5;
f(5) = 5 - phi(bigomega(5)) = 5 - phi(1) = 5 - 1 = 4;
f(4) = 4 - phi(bigomega(4)) = 4 - phi(2) = 4 - 1 = 3;
f(3) = 3 - phi(bigomega(3)) = 3 - phi(1) = 3 - 1 = 2 ;
f(2) = 2 - phi(bigomega(2)) = 2 - phi(1) = 2 - 1 = 1, and a(6) = 5.
MAPLE
A176842 := proc(n)
local it, nmap ;
it := 0 ;
nmap := n ;
while nmap <> 1 do
nmap := nmap-numtheory[phi](numtheory[bigomega](nmap)) ;
it := it+1 ;
end do:
it ;
end proc: # R. J. Mathar, Jun 01 2011
MATHEMATICA
f[n_] := n - EulerPhi[PrimeOmega[n]]; a[n_] := Length[FixedPointList[f, n]] - 2; Array[a, 50] (* Amiram Eldar, Jul 13 2019 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Michel Lagneau, Apr 27 2010
STATUS
approved