login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A037394 Numbers n such that every base 5 digit of n is a base 7 digit of n. 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

Reinhard Zumkeller, Table of n, a(n) for n = 1..10000

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

Cf. A037393, A037395, A037396, A037397.

Sequence in context: A333825 A115891 A293035 * A037430 A329545 A187075

Adjacent sequences:  A037391 A037392 A037393 * A037395 A037396 A037397

KEYWORD

nonn,base

AUTHOR

Clark Kimberling

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified September 29 16:13 EDT 2020. Contains 337432 sequences. (Running on oeis4.)