[go: up one dir, main page]

login
Revision History for A174658 (Bold, blue-underlined text is an addition; faded, red-underlined text is a deletion.)

Showing entries 1-10 | older changes
Balanced ternary numbers with equal count of negative trits and positive trits.
(history; published version)
#17 by Joerg Arndt at Wed Apr 28 10:10:53 EDT 2021
STATUS

reviewed

approved

#16 by Michel Marcus at Wed Apr 28 09:28:54 EDT 2021
STATUS

proposed

reviewed

#15 by F. Chapoton at Wed Apr 28 09:15:27 EDT 2021
STATUS

editing

proposed

#14 by F. Chapoton at Wed Apr 28 09:15:19 EDT 2021
PROG

n=n //= 3

print ([n for n in range(301) if a(n)==0] ) # Indranil Ghosh, Jun 07 2017

STATUS

approved

editing

Discussion
Wed Apr 28
09:15
F. Chapoton: adapt py code to py3
#13 by N. J. A. Sloane at Sat Dec 07 12:18:26 EST 2019
PROG

print [n for n in xrangerange(301) if a(n)==0] # Indranil Ghosh, Jun 07 2017

Discussion
Sat Dec 07
12:18
OEIS Server: https://oeis.org/edit/global/2837
#12 by N. J. A. Sloane at Wed Jun 07 00:44:40 EDT 2017
STATUS

proposed

approved

#11 by Indranil Ghosh at Wed Jun 07 00:09:44 EDT 2017
STATUS

editing

proposed

#10 by Indranil Ghosh at Wed Jun 07 00:09:29 EDT 2017
PROG

(Python)

def a(n):

s=0

x=0

while n>0:

x=n%3

n=n/3

if x==2:

x=-1

n+=1

s+=x

return s

print [n for n in xrange(301) if a(n)==0] # Indranil Ghosh, Jun 07 2017

STATUS

approved

editing

#9 by Alois P. Heinz at Wed May 13 09:06:23 EDT 2015
STATUS

editing

approved

#8 by Alois P. Heinz at Mon May 11 15:04:04 EDT 2015
CROSSREFS
STATUS

approved

editing