A384128 Number of iterations for the circular absolute first-difference on decimal digits to reach a repdigit.
0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 3, 2, 3, 5, 6, 5, 6
Offset: 1
Examples
The first value > 1 is a(100) = 3. a(21) = |2-1| |1-2| = 11 -> repdigit at t = 1, so a(21) = 1. a(109) = 109 -> 198 -> 817 -> 761 -> 156 -> 415 -> 341 -> 132 -> 211 -> 101 -> 110 -> 11 requires 11 steps, so a(109) = 11.
Crossrefs
Cf. A010785.
Programs
Extensions
Data corrected by Sean A. Irvine, Jun 13 2025
Comments