STATUS
reviewed
approved
reviewed
approved
proposed
reviewed
editing
proposed
editing
proposed
Numbers n k such that every base -3 digit of n k is a base -8 digit of nk.
approved
editing
editing
approved
(PARI) is(n)=#setminus(Set(digits(n, 3)), Set(digits(n, 8)))==0 \\ Charles R Greathouse IV, Feb 11 2017
approved
editing
editing
approved
(Haskell)
import Data.List ((\\), nub)
a037384 n = a037384_list !! (n-1)
a037384_list = filter f [1..] where
f x = null $ nub (ds 3 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
approved
editing