login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
LINKS
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
Sequence in context: A139483 A051954 A049821 * A299114 A103605 A098171
KEYWORD
nonn,base,easy
AUTHOR
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 20 08:46 EDT 2024. Contains 374442 sequences. (Running on oeis4.)