login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A039567 Numbers n such that representation in base 5 has same number of 0's, 2's and 4's. 1
1, 3, 6, 8, 16, 18, 31, 33, 41, 43, 54, 70, 81, 83, 91, 93, 102, 110, 139, 147, 156, 158, 166, 168, 179, 195, 206, 208, 216, 218, 227, 235, 259, 269, 271, 273, 279, 295, 329, 345, 351, 353, 355, 365, 389, 397, 406, 408, 416, 418, 429, 445, 456, 458, 466, 468 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

LINKS

Robert Israel, Table of n, a(n) for n = 1..10000

EXAMPLE

54 is a term since 54 in base 10 is 204 in base 5.

MAPLE

filter:= proc(n) local L, q;

  L:= convert(n, base, 5);

  nops(map(numboccur, {0, 2, 4}, L))=1

end proc:

select(filter, [$1..1000]); # Robert Israel, Apr 09 2018

MATHEMATICA

ok5Q[n_]:=Module[{dc5=DigitCount[n, 5]}, dc5[[2]]==dc5[[4]]==dc5[[5]]]; Select[Range[500], ok5Q]  (* Harvey P. Dale, Mar 05 2011 *)

CROSSREFS

Cf. A039562, A039563, A039564, A039565, A039566.

Sequence in context: A305595 A320687 A340494 * A032912 A123208 A179652

Adjacent sequences:  A039564 A039565 A039566 * A039568 A039569 A039570

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 May 9 10:48 EDT 2021. Contains 343732 sequences. (Running on oeis4.)