OFFSET
1,3
COMMENTS
The map n -> A069345(n) is applied repeatedly, starting at n, until reaching a 1.
LINKS
Enrique Pérez Herrero, Table of n, a(n) for n = 1..5000
EXAMPLE
a(n=5) = 3 because 5 - bigomega(5) = 4 (first iteration),
4 - bigomega(4) = 2 (second iteration) and
2 - bigomega(2) = 1 (third iteration and reaching 1).
MAPLE
with(numtheory): n0:=200:tabl:=array(1..n0): for n from 1 to 1000 do: k:=0: nn:=n: for q from 0 to 1000 while(nn<>1) do:nn:=nn - bigomega(nn): k:=k+1: od: tabl[n]:=k: od: print(tabl):
MATHEMATICA
t[n_] := -1 + Length[NestWhileList[#-PrimeOmega[#]&, n, #>1&]]; Table[t[n], {n, 100}] (* Enrique Pérez Herrero, Apr 25 2012 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Michel Lagneau, Apr 26 2010
EXTENSIONS
Mention A069345 in the comment. - R. J. Mathar, Oct 20 2010
STATUS
approved