login
A023729
Numbers with no 2's in their base-5 expansion.
6
0, 1, 3, 4, 5, 6, 8, 9, 15, 16, 18, 19, 20, 21, 23, 24, 25, 26, 28, 29, 30, 31, 33, 34, 40, 41, 43, 44, 45, 46, 48, 49, 75, 76, 78, 79, 80, 81, 83, 84, 90, 91, 93, 94, 95, 96, 98, 99, 100, 101, 103, 104, 105, 106, 108, 109, 115, 116, 118, 119, 120, 121
OFFSET
1,3
MAPLE
seq(`if`(numboccur(2, convert(n, base, 5))=0, n, NULL), n=0..127); # Nathaniel Johnston, Jun 27 2011
MATHEMATICA
Select[ Range[ 0, 125 ], (Count[ IntegerDigits[ #, 5 ], 2 ]==0)& ]
PROG
(PARI) is(n)=while(n>2, if(n%5==2, return(0)); n\=5); 1 \\ Charles R Greathouse IV, Feb 12 2017
CROSSREFS
KEYWORD
nonn,base,easy
STATUS
approved