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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A117306 Numbers n such that the counts of 0's, 1's and 2's are the same in the ternary expansion of 2^n. 0
66, 227, 903, 17574, 40102, 462260, 5930999 (list; graph; refs; listen; history; internal format)
OFFSET

1,1

EXAMPLE

2^66 = {2, 0, 0, 0, 1, 2, 1, 2, 1, 0, 2, 1, 1, 2, 1, 0, 2, 1, 1, 2, 1, 0, 2, 1, 2, 2, 2, 1, 0, 0, 0, 2, 0, 0, 2, 0, 1, 0, 1, 2, 0, 1}

Count of 1 = count of 2 = count of 0 = 14, so 66 is member

Occurrences of digits 0,1,2 in 2^n:

{n, {#0,#1,#2}}

{66,{14,14,14}}

{227,{48,48,48}}

{903,{190,190,190}}

{17574,{3696,3696,3696}}

{40102,{8434,8434,8434}}

{462260,{97218,97218,97218}}. [Willy Van den Driessche, Jul 21 2011]

MATHEMATICA

Do[If[DigitCount[2^n, 3, 0]==DigitCount[2^n, 3, 1]==DigitCount[2^n, 3, 2], Print[n]], {n, 1, 60000}]

CROSSREFS

Sequence in context: A074873 A205817 A046393 * A158070 A120102 A084027

Adjacent sequences:  A117303 A117304 A117305 * A117307 A117308 A117309

KEYWORD

nonn

AUTHOR

Mohammed Bouayoun (Mohammed.bouayoun(AT)sanef.com), Apr 24 2006

EXTENSIONS

a(6)=462260 added by Willy Van den Driessche, Jul 21 2011.

a(7) from Donovan Johnson (donovan.johnson(AT)yahoo.com), Jul 25 2011

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 15 10:28 EST 2012. Contains 205763 sequences.