OFFSET
1,2
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
Wikipedia, Primorial number system.
EXAMPLE
2 is a term since its primorial base representation is {1, 0}.
10, 13 and 14 are terms since their primorial base representations are {1, 2, 0}, {2, 0, 1} and {2, 1, 0}, respectively.
MATHEMATICA
m = 6; bases = Reverse @ Prime @ Range[m]; max = Times @@ bases; primBase[n_] := IntegerDigits[n, MixedRadix[bases]]; q[n_] := Union[(pd = primBase[n])] == Range[0, Length[pd] - 1]; Select[Range[0, max], q]
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Amiram Eldar, Apr 16 2021
STATUS
approved