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.

A247801 Numbers in decimal representation with distinct digits, such that in Danish their digits are in alphabetic order.

Original entry on oeis.org

0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 23, 40, 42, 43, 46, 47, 48, 49, 50, 52, 53, 54, 56, 57, 58, 59, 62, 63, 67, 72, 73, 82, 83, 86, 87, 90, 92, 93, 96, 97, 98, 102, 103, 106, 107, 108, 123, 140, 142, 143, 146, 147, 148, 149, 150
Offset: 1

Views

Author

Reinhard Zumkeller, Oct 05 2014

Keywords

Comments

List of decimal digits, alphabetically sorted by their names in Danish:
1 en/et, 5 fem, 4 fire, 9 ni, 0 nul, 8 otte, 6 seks, 7 syv, 2 to, 3 tre;
finite sequence with last and largest term a(992) = 1549086723.

Crossrefs

Intersection of A010784 and Cf. A247751.
Cf. A247800 (Czech), A247802 (Dutch), A053433 (English), A247803 (Finnish), A247804 (French), A247805 (German), A247806 (Hungarian), A247807 (Italian), A247808 (Latin), A247809 (Norwegian), A247810 (Polish), A247807 (Portuguese), A247811 (Russian), A247812 (Slovak), A247813 (Spanish), A247809 (Swedish), A247814 (Turkish).

Programs

  • Haskell
    import Data.IntSet (fromList, deleteFindMin, union)
    import qualified Data.IntSet as Set (null)
    a247801 n = a247801_list !! (n-1)
    a247801_list = 0 : f (fromList [1..9]) where
       f s | Set.null s = []
           | otherwise  = x : f (s' `union`
             fromList (map (+ 10 * x) $ tail $ dropWhile (/= mod x 10) digs))
           where (x, s') = deleteFindMin s
       digs = [1, 5, 4, 9, 0, 8, 6, 7, 2, 3]