Number of steps needed to reach a prime when the map S(n)+M(n) is applied to n, or -1 if a prime is never reached. Here S(n) and M(N) mean the sum and the product of the digits of n in base 10.
A171772
Number of steps needed to reach a prime when the map S(n)+M(n) is applied to n, or -1 if a prime is never reached. Here S(n) and M(N) mean the sum and the product of the digits of n in base 10.
Terms
- a(0) =1a(1) =0a(2) =0a(3) =3a(4) =0a(5) =2a(6) =0a(7) =2a(8) =2a(9) =2a(10) =0a(11) =1a(12) =0a(13) =3a(14) =1a(15) =1a(16) =0a(17) =1a(18) =0a(19) =1a(20) =1a(21) =3a(22) =0a(23) =4a(24) =1a(25) =2a(26) =1a(27) =3a(28) =0a(29) =1
External references
- oeis: A171772