A089589 Iban numbers (the letter i is banned from the English name of the number).
0, 1, 2, 3, 4, 7, 10, 11, 12, 14, 17, 20, 21, 22, 23, 24, 27, 40, 41, 42, 43, 44, 47, 70, 71, 72, 73, 74, 77, 100, 101, 102, 103, 104, 107, 110, 111, 112, 114, 117, 120, 121, 122, 123, 124, 127, 140, 141, 142, 143, 144, 147, 170, 171, 172, 173, 174, 177, 200, 201
Offset: 1
Links
- Michael S. Branicky, Table of n, a(n) for n = 1..30276 (full sequence; terms 1..10000 from Reinhard Zumkeller)
- Roel and Bas van Dijk, Numerals package, Hackage (Haskell packages).
- Eric Weisstein's World of Mathematics, Iban Number
- Wikipedia, Names of Large Numbers
- Index entries for sequences related to number of letters in n
Programs
-
Haskell
import Data.Maybe (fromJust) import Data.Text (Text); import qualified Data.Text as T (all) import Text.Numeral.Grammar.Reified (defaultInflection) import qualified Text.Numeral.Language.EN as EN -- see link a089589 n = a089589_list !! (n-1) a089589_list = filter (T.all (/= 'i') . numeral) [0..] where numeral :: Integer -> Text numeral = fromJust . EN.gb_cardinal defaultInflection -- Reinhard Zumkeller, Jan 23 2015
-
Python
from itertools import islice from num2words import num2words def agen(): yield from (k for k in range(10**6) if "i" not in num2words(k)) print(list(islice(agen(), 60))) # Michael S. Branicky, Aug 04 2022
Comments