Triangle read by rows in which row n begins with n and iterates the process of dividing n by 2 if n is even, adding 3 if n is an odd prime, otherwise adding 1; stopping when either 1 or 3 is reached.

A081878

Triangle read by rows in which row n begins with n and iterates the process of dividing n by 2 if n is even, adding 3 if n is an odd prime, otherwise adding 1; stopping when either 1 or 3 is reached.

Terms

    a(0) =1a(1) =2a(2) =1a(3) =3a(4) =4a(5) =2a(6) =1a(7) =5a(8) =8a(9) =4a(10) =2a(11) =1a(12) =6a(13) =3a(14) =7a(15) =10a(16) =5a(17) =8a(18) =4a(19) =2a(20) =1a(21) =8a(22) =4a(23) =2a(24) =1a(25) =9a(26) =10a(27) =5a(28) =8a(29) =4

External references