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!)
A037394 Numbers k such that every base-5 digit of k is a base-7 digit of k. 6
1, 2, 3, 4, 17, 51, 66, 102, 109, 123, 156, 158, 162, 206, 218, 312, 317, 324, 361, 381, 416, 418, 423, 458, 462, 463, 466, 467, 468, 472, 494, 518, 545, 546, 549, 556, 557, 559, 562, 584, 606, 619, 621, 630, 640, 651, 658, 687 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
MATHEMATICA
Select[Range[700], SubsetQ[IntegerDigits[#, 7], IntegerDigits[#, 5]]&] (* Harvey P. Dale, Sep 29 2017 *)
PROG
(Haskell)
import Data.List ((\\), nub)
a037394 n = a037394_list !! (n-1)
a037394_list = filter f [1..] where
f x = null $ nub (ds 5 x) \\ nub (ds 7 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: A115891 A359230 A293035 * A037430 A370868 A329545
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 April 23 13:41 EDT 2024. Contains 371914 sequences. (Running on oeis4.)