|
|
A037382
|
|
Numbers k such that every base-3 digit of k is a base-6 digit of k.
|
|
7
|
|
|
1, 2, 8, 13, 26, 36, 37, 38, 39, 40, 44, 48, 49, 50, 52, 53, 68, 72, 73, 74, 78, 79, 80, 109, 121, 152, 157, 182, 218, 224, 228, 229, 230, 231, 232, 233, 236, 242, 243, 244, 246, 247, 248, 252, 253, 254, 255, 256, 264, 270, 282, 288
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
LINKS
|
|
|
MATHEMATICA
|
Select[Range[300], SubsetQ[IntegerDigits[#, 6], IntegerDigits[#, 3]]&] (* Harvey P. Dale, Jun 05 2015 *)
|
|
PROG
|
(Haskell)
import Data.List ((\\), nub)
a037382 n = a037382_list !! (n-1)
a037382_list = filter f [1..] where
f x = null $ nub (ds 3 x) \\ nub (ds 6 x)
ds b x = if x > 0 then d : ds b x' else [] where (x', d) = divMod x b
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|