OFFSET
1,4
EXAMPLE
a(19)=5 because
f(19) = 19 - tau(sigma(19)) = 19 - tau(20) = 19 - 6 = 13;
f(13) = 13 - tau(sigma(13)) = 13 - tau(14) = 13 - 4 = 9;
f(9) = 9 - tau(sigma(9)) = 9 - tau(13) = 9 - 2 = 7;
f(7) = 7- tau(sigma(7)) = 7 - tau(8) = 7 - 4 = 3;
f(3) = 3- tau(sigma(3)) = 3 - tau(4) = 3 - 3 = 0;
MAPLE
A062068 := proc(n)
numtheory[tau](numtheory[sigma](n)) ;
end proc:
A176816 := proc(n)
a := 0 ;
x := n ;
while x <> 0 do
x := x-A062068(x) ;
a := a+1 ;
end do:
a ;
end proc: # R. J. Mathar, Oct 11 2011
MATHEMATICA
f[n_] := If[n == 0, 0, n - DivisorSigma[0, DivisorSigma[1, n]]];
a[n_] := Length[FixedPointList[f, n]] - 2;
Table[a[n], {n, 1, 100}] (* Jean-François Alcover, Apr 09 2024 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Michel Lagneau, Apr 26 2010
STATUS
approved