Start with x = n, repeatedly replace x with x + sum of squares of digits of x until you reach a prime; sequence gives number of steps.
A094830
Start with x = n, repeatedly replace x with x + sum of squares of digits of x until you reach a prime; sequence gives number of steps.
Terms
- a(0) =1a(1) =0a(2) =0a(3) =6a(4) =0a(5) =4a(6) =0a(7) =11a(8) =5a(9) =1a(10) =0a(11) =1a(12) =0a(13) =1a(14) =1a(15) =1a(16) =0a(17) =1a(18) =0a(19) =5a(20) =13a(21) =9a(22) =0a(23) =4a(24) =11a(25) =12a(26) =17a(27) =3a(28) =0a(29) =8
External references
- oeis: A094830