login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A357970 a(n) is the number of segments used to represent the time of n minutes past midnight in the format hh:mm on a 7-segment calculator display; version where the digits '6', '7' and '9' use 6, 3 and 6 segments, respectively. 6
24, 20, 23, 23, 22, 23, 24, 21, 25, 24, 20, 16, 19, 19, 18, 19, 20, 17, 21, 20, 23, 19, 22, 22, 21, 22, 23, 20, 24, 23, 23, 19, 22, 22, 21, 22, 23, 20, 24, 23, 22, 18, 21, 21, 20, 21, 22, 19, 23, 22, 23, 19, 22, 22, 21, 22, 23, 20, 24, 23, 20, 16, 19, 19, 18, 19, 20 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
COMMENTS
The sequence is periodic of period 1440 since the term a(1440) = a(0) = 24 corresponds to the time 00:00.
LINKS
Stefano Spezia, Table of n, a(n) for n = 0..1439 (first period of the sequence).
FORMULA
a(n) = A006942(A055643(n)) + 6*(4 - ceiling(log10(A055643(n) + 1))) for n > 0.
a(n) <= 26.
MATHEMATICA
a055643[n_]:=FromDigits@ Apply[Join, PadLeft[#, 2] & /@ IntegerDigits@ IntegerDigits[n, 60]]; a006942[n_] := Plus @@ (IntegerDigits@ n /. {0 -> 6, 1 -> 2, 2 -> 5, 3 -> 5, 7 -> 3, 8 -> 7, 9 -> 6}); a[n_]:=a006942[a055643[n]]+6(4-Ceiling[Log10[a055643[n]+1]]); Join[{24}, Array[a, 66]]
CROSSREFS
Sequence in context: A153729 A357972 A357974 * A357973 A357971 A128560
KEYWORD
nonn,base,easy
AUTHOR
Stefano Spezia, Oct 22 2022
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 14 18:32 EDT 2024. Contains 375166 sequences. (Running on oeis4.)