login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A357998
a(n) is the number of times in the format hh:mm that can be represented in a 7-segment display by using only n segments (version A063720).
4
1, 2, 4, 18, 25, 41, 96, 103, 133, 189, 188, 154, 158, 155, 95, 53, 19, 5, 1
OFFSET
8,2
COMMENTS
Since 8 <= A357972(n) <= 26 the sequence is finite and begins with offset 8.
MATHEMATICA
a055643[n_]:=FromDigits@ Apply[Join, PadLeft[#, 2] & /@ IntegerDigits@ IntegerDigits[n, 60]]; a063720[n_] := Plus @@ (IntegerDigits@ n /. {0 -> 6, 1 -> 2, 2 -> 5, 3 -> 5, 6 -> 5, 7 -> 3, 8 -> 7, 9 -> 5}); a[n_]:=a063720[a055643[n]]+6(4-Ceiling[Log10[a055643[n]+1]]); Table[Count[Join[{24}, Array[a, 1439]], n], {n, 8, 26}]
CROSSREFS
Histogram of A357972.
Sequence in context: A115987 A076692 A350629 * A220586 A054300 A303360
KEYWORD
nonn,base,easy,fini,full
AUTHOR
Stefano Spezia, Oct 23 2022
STATUS
approved