login
Numbers in decimal representation with distinct digits, such that in Italian and Portuguese their digits are in alphabetic order.
17

%I #4 Oct 05 2014 19:12:31

%S 0,1,2,3,4,5,6,7,8,9,10,20,21,23,24,26,27,28,29,30,31,40,41,43,46,47,

%T 50,51,52,53,54,56,57,58,59,60,61,63,67,70,71,73,80,81,83,84,86,87,90,

%U 91,93,94,96,97,98,210,230,231,240,241,243,246,247,260,261

%N Numbers in decimal representation with distinct digits, such that in Italian and Portuguese their digits are in alphabetic order.

%C List of decimal digits, alphabetically sorted by their names in Italian resp. Portuguese: 5 _ cinque _ cinco, 2 _ due _ dois/duas, 9 _ nove _ nove, 8 _ otto _ oito, 4 _ quattro _ quatro, 6 _ sei _ seis, 7 _ sette _ sete, 3 _ tre _ tres, 1 _ uno _ um, 0 _ zero _ zero;

%C finite sequence with last and largest term a(1023) = 5298467310.

%H Reinhard Zumkeller, <a href="/A247807/b247807.txt">Table of n, a(n) for n = 1..1023</a>

%H Wikipedia, <a href="http://de.wikipedia.org/wiki/Zahlen_in_unterschiedlichen_Sprachen#0_bis_10">Zahlen in unterschiedlichen Sprachen</a>

%H Wikipedia, <a href="http://en.wikipedia.org/wiki/List_of_numbers_in_various_languages">List of numbers in various languages</a>

%o (Haskell)

%o import Data.IntSet (fromList, deleteFindMin, union)

%o import qualified Data.IntSet as Set (null)

%o a247807 n = a247807_list !! (n-1)

%o a247807_list = 0 : f (fromList [1..9]) where

%o f s | Set.null s = []

%o | otherwise = x : f (s' `union`

%o fromList (map (+ 10 * x) $ tail $ dropWhile (/= mod x 10) digs))

%o where (x, s') = deleteFindMin s

%o digs = [5, 2, 9, 8, 4, 6, 7, 3, 1, 0]

%Y Intersection of A010784 and A247757.

%Y Cf. A247800 (Czech), A247801 (Danish), A247802 (Dutch), A053433 (English), A247803 (Finnish), A247804 (French), A247805 (German), A247806 (Hungarian), A247808 (Latin), A247809 (Norwegian), A247810 (Polish), A247811 (Russian), A247812 (Slovak), A247813 (Spanish), A247809 (Swedish), A247814 (Turkish).

%K nonn,base,word,fini,full

%O 1,3

%A _Reinhard Zumkeller_, Oct 05 2014