OFFSET
1,4
COMMENTS
EXAMPLE
a(n=12) = 5 because :
12 - bigomega(sigma(12)) = 9 (1st step); 9 - bigomega(sigma(9)) = 8 (2nd step)
8 - bigomega(sigma(8)) = 6 (3rd step); 6 - bigomega(sigma(6)) = 3 (4th step);
3 - bigomega(sigma(3)) = 1 (fifth and final step).
MAPLE
with(numtheory): n0:=200:tabl:=array(1..n0):
for n from 1 to n0 do: k:=0: nn:=n: for q from 0 to 1000 while(nn<>1) do: nn:=nn - bigomega(sigma((nn))): k:=k+1: od: tabl[n]:=k: od: print(tabl):
MATHEMATICA
Table[Length[NestWhileList[#-PrimeOmega[DivisorSigma[1, #]]&, n, #>1&]]- 1, {n, 80}] (* Harvey P. Dale, Dec 16 2012 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Michel Lagneau, Apr 27 2010
EXTENSIONS
Examples of the auxiliary function added - R. J. Mathar, Oct 12 2010
STATUS
approved