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!)
A039563 Numbers whose base-5 representation has the same number of 0's, 1's and 2's. 2
3, 4, 18, 19, 23, 24, 27, 35, 51, 55, 93, 94, 98, 99, 118, 119, 123, 124, 138, 139, 142, 147, 178, 179, 190, 195, 202, 210, 227, 235, 258, 259, 266, 271, 278, 279, 290, 295, 326, 330, 351, 355, 382, 386, 402, 410, 426, 430, 468, 469, 473, 474, 493, 494, 498 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
MAPLE
filter:= proc(n) local L, m;
L:= sort(select(`<=`, convert(n, base, 5), 2));
m:= nops(L)/3;
m::integer and L = [0$m, 1$m, 2$m];
end proc:
select(filter, [$1..1000]); # Robert Israel, Jan 17 2020
MATHEMATICA
Select[Range[500], DigitCount[#, 5, 0]==DigitCount[#, 5, 1] == DigitCount[ #, 5, 2]&] (* Harvey P. Dale, Dec 24 2021 *)
PROG
(Magma) f:=func<n, b, c|Multiplicity(Intseq(n, b), c)>; [k:k in [1..500]|f(k, 5, 0) eq f(k, 5, 1) and f(k, 5, 0) eq f(k, 5, 2)]; // Marius A. Burtea, Jan 17 2020
CROSSREFS
Cf. A007091 (numbers in base 5).
Sequence in context: A009208 A296283 A051473 * A032829 A039585 A025118
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 14:09 EDT 2024. Contains 371960 sequences. (Running on oeis4.)