login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A037401 Numbers k such that every base-6 digit of k is a base-10 digit of k. 5
1, 2, 3, 4, 5, 35, 123, 154, 215, 331, 512, 521, 1014, 1024, 1045, 1054, 1085, 1135, 1145, 1151, 1295, 1302, 1303, 1305, 1350, 1440, 1450, 1504, 1506, 1507, 1520, 1530, 1540, 1555, 1559, 1562, 1579, 1583, 1592, 1639, 1653 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
PROG
(Haskell)
import Data.List ((\\), nub)
a037401 n = a037401_list !! (n-1)
a037401_list = filter f [1..] where
f x = null $ nub (ds 6 x) \\ nub (ds 10 x)
ds b x = if x > 0 then d : ds b x' else [] where (x', d) = divMod x b
-- Reinhard Zumkeller, May 30 2013
(Haskell)
import Data.List ((\\), nub)
a037401 n = a037401_list !! (n-1)
a037401_list = filter f [1..] where
f x = null $ nub (ds 6 x) \\ nub (ds 10 x)
ds b x = if x > 0 then d : ds b x' else [] where (x', d) = divMod x b
-- Reinhard Zumkeller, May 30 2013
CROSSREFS
Sequence in context: A004845 A124128 A286902 * A062509 A061537 A306329
KEYWORD
nonn,base
AUTHOR
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified March 28 11:46 EDT 2024. Contains 371241 sequences. (Running on oeis4.)