login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A039430 Numbers n such that representation in base 10 has same nonzero number of 5's and 8's. 1
58, 85, 158, 185, 258, 285, 358, 385, 458, 485, 508, 518, 528, 538, 548, 568, 578, 580, 581, 582, 583, 584, 586, 587, 589, 598, 658, 685, 758, 785, 805, 815, 825, 835, 845, 850, 851, 852, 853, 854, 856, 857, 859, 865, 875, 895, 958, 985, 1058, 1085 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

LINKS

David A. Corneth, Table of n, a(n) for n = 1..10000

MATHEMATICA

Select[Range[1100], DigitCount[#, 10, 5]==DigitCount[#, 10, 8]>0&] (* Harvey P. Dale, Apr 18 2019 *)

PROG

(PARI) is(n) = my(d=digits(n), sis5=#setintersect(vecsort(d), vector(#d, x, 5)), sis8=#setintersect(vecsort(d), vector(#d, x, 8))); sis5 > 0 && sis5==sis8 \\ Felix Fröhlich, Apr 18 2019

CROSSREFS

Sequence in context: A127334 A275702 A306115 * A043253 A044033 A266451

Adjacent sequences:  A039427 A039428 A039429 * A039431 A039432 A039433

KEYWORD

nonn,base,easy

AUTHOR

Olivier Gérard

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 18 15:00 EDT 2019. Contains 326106 sequences. (Running on oeis4.)