login
A023725
Numbers with no 1's in their base-5 expansion.
6
0, 2, 3, 4, 10, 12, 13, 14, 15, 17, 18, 19, 20, 22, 23, 24, 50, 52, 53, 54, 60, 62, 63, 64, 65, 67, 68, 69, 70, 72, 73, 74, 75, 77, 78, 79, 85, 87, 88, 89, 90, 92, 93, 94, 95, 97, 98, 99, 100, 102, 103, 104, 110, 112, 113, 114, 115, 117, 118, 119, 120
OFFSET
1,2
MAPLE
seq(`if`(numboccur(1, convert(n, base, 5))=0, n, NULL), n=0..127); # Nathaniel Johnston, Jun 27 2011
MATHEMATICA
Select[ Range[ 0, 125 ], (Count[ IntegerDigits[ #, 5 ], 1 ]==0)& ]
PROG
(PARI) is(n)=while(n>1, if(n%5==1, return(0)); n\=5); 1 \\ Charles R Greathouse IV, Feb 12 2017
CROSSREFS
KEYWORD
nonn,base,easy
STATUS
approved