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!)
A039061 Numbers whose base-8 representation has the same number of 1's and 7's. 1
0, 2, 3, 4, 5, 6, 15, 16, 18, 19, 20, 21, 22, 24, 26, 27, 28, 29, 30, 32, 34, 35, 36, 37, 38, 40, 42, 43, 44, 45, 46, 48, 50, 51, 52, 53, 54, 57, 71, 87, 95, 103, 111, 119, 120, 122, 123, 124, 125, 126, 128, 130, 131, 132, 133, 134, 143, 144, 146, 147, 148, 149, 150 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
MATHEMATICA
Select[Range[0, 150], DigitCount[#, 8, 1]==DigitCount[#, 8, 7]&] (* Harvey P. Dale, Feb 08 2011 *)
PROG
(PARI) isok(n) = my(d=digits(n, 8)); #select(x->(x==1), d) == #select(x->(x==7), d); \\ Michel Marcus, Nov 01 2017
CROSSREFS
Sequence in context: A065637 A325805 A350190 * A138987 A318534 A265405
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 April 24 17:51 EDT 2024. Contains 371962 sequences. (Running on oeis4.)