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!)
A039126 Numbers whose base-10 representation has the same number of 1's and 8's. 1

%I #15 Jun 26 2021 00:38:35

%S 0,2,3,4,5,6,7,9,18,20,22,23,24,25,26,27,29,30,32,33,34,35,36,37,39,

%T 40,42,43,44,45,46,47,49,50,52,53,54,55,56,57,59,60,62,63,64,65,66,67,

%U 69,70,72,73,74,75,76,77,79,81,90,92,93,94,95,96,97,99,108,128,138

%N Numbers whose base-10 representation has the same number of 1's and 8's.

%H G. C. Greubel, <a href="/A039126/b039126.txt">Table of n, a(n) for n = 1..5000</a>

%t Select[Range[0, 500], DigitCount[#, 10, 1] == DigitCount[#, 10, 8] &] (* _G. C. Greubel_, Nov 01 2017 *)

%o (PARI) isok(n) = my(d=digits(n)); #select(x->(x==1), d) == #select(x->(x==8), d); \\ _Michel Marcus_, Nov 01 2017

%K nonn,base,easy

%O 1,2

%A _Olivier GĂ©rard_

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 25 07:07 EDT 2024. Contains 371964 sequences. (Running on oeis4.)