OFFSET
1,3
LINKS
Nathaniel Johnston, Table of n, a(n) for n = 1..10000
EXAMPLE
14 in base 5 is 24, which contains no 3's, so 14 is in the sequence.
15 in base 5 is 30, so 15 is not in the sequence.
MAPLE
seq(`if`(numboccur(3, convert(n, base, 5))=0, n, NULL), n=0..127); # Nathaniel Johnston, Jun 27 2011
MATHEMATICA
Select[Range[0, 124], Count[IntegerDigits[#, 5], 3] == 0 &]
Select[Range[0, 200], DigitCount[#, 5, 3]==0&] (* Harvey P. Dale, Jul 29 2024 *)
PROG
(PARI) is(n)=while(n>3, if(n%5==3, return(0)); n\=5); 1 \\ Charles R Greathouse IV, Feb 12 2017
(Scala) (0 to 124).filter(Integer.toString(_, 5).indexOf("3") == -1) // Alonso del Arte, Feb 05 2019
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
STATUS
approved