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

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A174659 Balanced ternary numbers with more positive trits than negative trits. 4
 1, 3, 4, 7, 9, 10, 11, 12, 13, 19, 21, 22, 25, 27, 28, 29, 30, 31, 33, 34, 35, 36, 37, 38, 39, 40, 49, 55, 57, 58, 61, 63, 64, 65, 66, 67, 73, 75, 76, 79, 81, 82, 83, 84, 85, 87, 88, 89, 90, 91, 92, 93, 94, 97, 99, 100, 101, 102, 103, 105, 106, 107, 108, 109, 110, 111, 112 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,2 COMMENTS Numbers for which the sum of trits is positive. LINKS Daniel Forgues, Table of n, a(n) for n=1..53007 MATHEMATICA (* First run the program for A065363 to define balTernDigits *) Select[Range[210], Count[balTernDigits[#], -1] < Count[balTernDigits[#], 1] &] (* Alonso del Arte, Feb 26 2011 *) PROG (Python) def a(n):     s=0     x=0     while n>0:         x=n%3         n//=3         if x==2:             x=-1             n+=1         s+=x     return s print([n for n in range(301) if a(n)>0]) # Indranil Ghosh, Jun 07 2017 CROSSREFS Cf. A174657, A174658, A065363, A140267. Sequence in context: A087276 A138225 A114889 * A242423 A010444 A010398 Adjacent sequences:  A174656 A174657 A174658 * A174660 A174661 A174662 KEYWORD base,nonn AUTHOR Daniel Forgues, Mar 26 2010 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.

Last modified June 20 23:44 EDT 2021. Contains 345316 sequences. (Running on oeis4.)