login
A247814
Numbers in decimal representation with distinct digits, such that in Turkish their digits are in alphabetic order.
17
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 13, 14, 17, 18, 19, 20, 23, 27, 28, 37, 40, 42, 43, 47, 48, 50, 51, 52, 53, 54, 57, 58, 59, 60, 61, 62, 63, 64, 65, 67, 68, 69, 80, 83, 87, 90, 92, 93, 94, 97, 98, 103, 107, 120, 123, 127, 128, 137, 140, 142, 143, 147
OFFSET
1,3
COMMENTS
List of decimal digits, alphabetically sorted by their names in Turkish:
6 _ altı, 5 _ beş, 1 _ bir, 9 _ dokuz, 4 _ dört, 2 _ iki, 8 _ sekiz, 0 _ sıfır, 3 _ üç, 7 _ yedi;
finite sequence with last and largest term a(1020) = 6519428037.
PROG
(Haskell)
import Data.IntSet (fromList, deleteFindMin, union)
import qualified Data.IntSet as Set (null)
a247814 n = a247814_list !! (n-1)
a247814_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 = [6, 5, 1, 9, 4, 2, 8, 0, 3, 7]
CROSSREFS
Intersection of A010784 and A247764.
Cf. A247800 (Czech), A247801 (Danish), 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).
Sequence in context: A306424 A005524 A191890 * A082918 A301373 A354581
KEYWORD
nonn,base,word,fini,full
AUTHOR
Reinhard Zumkeller, Oct 05 2014
STATUS
approved