This site is supported by donations to The OEIS Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A037399 Numbers n such that every base 6 digit of n is a base 8 digit of n. 5
 1, 2, 3, 4, 5, 28, 80, 85, 86, 98, 115, 160, 172, 213, 266, 331, 345, 532, 691, 699, 705, 708, 717, 720, 727, 763, 765, 792, 799, 811, 819, 835, 851, 859, 861, 863, 864, 900, 916, 928, 1036, 1061, 1068, 1085, 1093, 1128, 1129, 1130 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,2 LINKS Reinhard Zumkeller, Table of n, a(n) for n = 1..10000 MATHEMATICA b68Q[n_]:=Module[{b6=Union[IntegerDigits[n, 6]], b8=Union[IntegerDigits[ n, 8]]}, And@@Table[ MemberQ[b8, b6[[i]]], {i, Length[b6]}]]; Select[Range[ 1200], b68Q] (* Harvey P. Dale, Mar 24 2012 *) PROG (Haskell) import Data.List ((\\), nub) a037399 n = a037399_list !! (n-1) a037399_list = filter f [1..] where    f x = null \$ nub (ds 6 x) \\ nub (ds 8 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. A037398, A037400, A037401. Sequence in context: A114333 A265098 A076209 * A220891 A220890 A250260 Adjacent sequences:  A037396 A037397 A037398 * A037400 A037401 A037402 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 | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified October 16 15:31 EDT 2019. Contains 328101 sequences. (Running on oeis4.)