login
A247806
Numbers in decimal representation with distinct digits, such that in Hungarian their digits are in alphabetic order.
17
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 24, 25, 28, 29, 30, 32, 34, 35, 36, 37, 38, 39, 40, 45, 48, 60, 62, 64, 65, 67, 68, 69, 70, 72, 74, 75, 78, 79, 85, 90, 94, 95, 98, 105, 108, 120, 124, 125, 128, 129, 130, 132, 134, 135
OFFSET
1,3
COMMENTS
List of decimal digits, alphabetically sorted by their names in Hungarian:
1 _ egy, 3 _ három, 6 _ hat, 7 _ hét, 2 _ kettő, 9 _ kilenc, 4 _ négy, 0 _ nulla, 8 _ nyolc, 5 _ öt;
finite sequence with last and largest term a(1020) = 1367294085.
PROG
(Haskell)
import Data.IntSet (fromList, deleteFindMin, union)
import qualified Data.IntSet as Set (null)
a247806 n = a247806_list !! (n-1)
a247806_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, 3, 6, 7, 2, 9, 4, 0, 8, 5]
CROSSREFS
Intersection of A010784 and A247756.
Cf. A247800 (Czech), A247801 (Danish), A247802 (Dutch), A053433 (English), A247803 (Finnish), A247804 (French), A247805 (German), A247807 (Italian), A247808 (Latin), A247809 (Norwegian), A247810 (Polish), A247807 (Portuguese), A247811 (Russian), A247812 (Slovak), A247813 (Spanish), A247809 (Swedish), A247814 (Turkish).
Sequence in context: A249626 A102823 A179308 * A333501 A369092 A247801
KEYWORD
nonn,base,word,fini,full
AUTHOR
Reinhard Zumkeller, Oct 05 2014
STATUS
approved