cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A060110 Numbers in Morse code, with 1 for a dot, 2 for a dash and 0 between digits/letters and then converted from base 3 to base 10.

Original entry on oeis.org

242, 161, 134, 125, 122, 121, 202, 229, 238, 241, 117611, 117530, 117503, 117494, 117491, 117490, 117571, 117598, 117607, 117610, 97928, 97847, 97820, 97811, 97808, 97807, 97888, 97915, 97924, 97927, 91367, 91286, 91259, 91250, 91247
Offset: 0

Views

Author

Henry Bottomley, Feb 28 2001

Keywords

Comments

The mentioned base 3 representation of the terms (digits 0, 1 and 2) is given in A060109. - M. F. Hasler, Jun 22 2020

Examples

			a(10) = 12222022222[base 3] = 117611[base 10] since 1 is ".----" and 0 is "-----".
		

Crossrefs

Programs

  • Haskell
    a060110 = t . a060109 where
       t 0 = 0
       t n = if n == 0 then 0 else 3 * t n' + d  where (n', d) = divMod n 10
    -- Reinhard Zumkeller, Feb 20 2015
    
  • PARI
    apply( {A060110(n)=if(n>9, self()(n\10)*3^6)+fromdigits([1+(abs(k-n%10)>2)|k<-[3..7]],3)}, [0..39]) \\ M. F. Hasler, Jun 23 2020

Formula

A007089(a(n)) = A060109(n). - Reinhard Zumkeller, Feb 20 2015