

A280916


Number of dashes in International Morse numeral representation of n.


5



5, 4, 3, 2, 1, 0, 1, 2, 3, 4, 9, 8, 7, 6, 5, 4, 5, 6, 7, 8, 8, 7, 6, 5, 4, 3, 4, 5, 6, 7, 7, 6, 5, 4, 3, 2, 3, 4, 5, 6, 6, 5, 4, 3, 2, 1, 2, 3, 4, 5, 5, 4, 3, 2, 1, 0, 1, 2, 3, 4, 6, 5, 4, 3, 2, 1, 2, 3, 4, 5, 7, 6, 5, 4, 3, 2, 3, 4, 5, 6, 8, 7, 6, 5, 4, 3, 4, 5, 6, 7, 9, 8, 7, 6, 5, 4, 5, 6, 7, 8, 14, 13, 12, 11, 10, 9, 10, 11, 12, 13
(list;
graph;
refs;
listen;
history;
text;
internal format)



OFFSET

0,1


COMMENTS

The Morse Code is written in current ITU standard.


LINKS

Indranil Ghosh, Table of n, a(n) for n = 0..10000
Wikipedia, Morse code
Wikipedia, International Telecommunication Union


EXAMPLE

For n = 4, the Morse numeral representation of 4 is "...." i.e., 1 dash. So, a(4) = 1.
For n = 26, the Morse numeral representation of 26 is ".. ...." i.e, 4 dashes. So, a(26) = 4.


PROG

(Python)
M={"1":".", "2":"..", "3":"...", "4":"....", "5":".....", "6":"....", "7":"...", "8":"..", "9":".", "0":""}
def a(n):
s=str(n)
z=""
for i in s:
z+=M[i]+" "
return z[:1].count("")
for i in range(0, 10001):
print str(a(i))+", ",


CROSSREFS

Cf. A006968, A278182, A280913.
Sequence in context: A021652 A022961 A023447 * A307336 A031016 A261302
Adjacent sequences: A280913 A280914 A280915 * A280917 A280918 A280919


KEYWORD

nonn,base


AUTHOR

Indranil Ghosh, Jan 10 2017


STATUS

approved



