A123587 Number of bars that must change on a standard digital clock when the minutes change from n-1 to n.
5, 4, 5, 2, 3, 3, 1, 5, 4, 1, 6, 4, 5, 2, 3, 3, 1, 5, 4, 1, 7, 4, 5, 2, 3, 3, 1, 5, 4, 1, 4, 4, 5, 2, 3, 3, 1, 5, 4, 1, 5, 4, 5, 2, 3, 3, 1, 5, 4, 1, 5, 4, 5, 2, 3, 3, 1, 5, 4, 1, 5, 4, 5, 2, 3, 3, 1, 5, 4, 1, 6, 4, 5, 2, 3, 3, 1, 5, 4, 1, 7, 4, 5, 2, 3, 3, 1, 5, 4, 1, 4, 4, 5, 2, 3, 3, 1, 5, 4, 1, 5, 4, 5, 2, 3, 3, 1, 5, 4, 1, 5, 4, 5, 2, 3, 3, 1, 5, 4, 1
Offset: 0
Examples
a(20)=7 because when the clock changes from 19 to 20 minutes, 1 bar turns off and 4 bars turn on in the tens digit for the "0" to become a "1" and 1 bar turns off and 1 turns on in the units digit for the "9" to become a "0". 1 + 4 + 1 + 1 = 7.
Comments