OFFSET
1,1
COMMENTS
If n is prime then a(n)=0. If n is composite then a(n)=A280929(n). - Dmitry Kamenetsky, Jan 11 2017
LINKS
MATHEMATICA
Table[Length@ NestWhileList[If[EvenQ@ #, #/2, 3 # + 1] &, n, ! PrimeQ@ # &] - 1, {n, 120}] (* Michael De Vlieger, Jun 26 2016 *)
PROG
(PARI) a(n) = my(i=0, k=n); while(!ispseudoprime(k), if(k%2==0, k=k/2, k=3*k+1); i++); i
for(n=1, 87, print1(a(n), ", ")) \\ Felix Fröhlich, Jun 24 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
Matthew Campbell, Jun 24 2016
EXTENSIONS
More terms from Felix Fröhlich, Jun 24 2016
STATUS
approved