OFFSET
1,1
COMMENTS
A212193(a(n)) = 3. - Reinhard Zumkeller, May 04 2012
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
Eric Weisstein's World of Mathematics, Ternary
Eric Weisstein's World of Mathematics, Pandigital Number
Wikipedia, Ternary numeral system
Wikipedia, Pandigital number
MATHEMATICA
Select[Range[200], Min[DigitCount[#, 3]]>0&] (* Harvey P. Dale, Nov 21 2015 *)
PROG
(Haskell)
import Data.List (elemIndices)
a031944 n = a031944_list !! (n-1)
a031944_list = elemIndices 3 a212193_list
-- Reinhard Zumkeller, May 04 2012
(Python)
from sympy.ntheory import count_digits
def ok(n): c = count_digits(n, 3); return all(c[d] > 0 for d in [0, 1, 2])
print([k for k in range(136) if ok(k)]) # Michael S. Branicky, Nov 15 2021
CROSSREFS
KEYWORD
nonn,base
AUTHOR
STATUS
approved