Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Revision History for A057889

(Bold, blue-underlined text is an addition; faded, red-underlined text is a deletion.)

Showing entries 1-10 | older changes
Bit-reverse of n, including as many leading as trailing zeros.
(history; published version)
#24 by Joerg Arndt at Sun Apr 26 03:41:35 EDT 2020
STATUS

reviewed

approved

#23 by Michel Marcus at Sun Apr 26 03:25:14 EDT 2020
STATUS

proposed

reviewed

#22 by F. Chapoton at Sun Apr 26 03:13:12 EDT 2020
STATUS

editing

proposed

#21 by F. Chapoton at Sun Apr 26 03:13:08 EDT 2020
PROG

x = bin(n)[2:]

y = x[::-1]

print ([a(n) for n in range(101)] ) # Indranil Ghosh, Jun 11 2017

STATUS

approved

editing

Discussion
Sun Apr 26
03:13
F. Chapoton: adapt python code to python3
#20 by N. J. A. Sloane at Sat Dec 07 12:18:22 EST 2019
PROG

print [a(n) for n in xrangerange(101)] # Indranil Ghosh, Jun 11 2017

Discussion
Sat Dec 07
12:18
OEIS Server: https://oeis.org/edit/global/2837
#19 by Michel Marcus at Sun Jun 11 04:08:46 EDT 2017
STATUS

reviewed

approved

#18 by Joerg Arndt at Sun Jun 11 02:46:49 EDT 2017
STATUS

proposed

reviewed

#17 by Indranil Ghosh at Sun Jun 11 02:17:08 EDT 2017
STATUS

editing

proposed

#16 by Indranil Ghosh at Sun Jun 11 02:17:03 EDT 2017
PROG

(Python)

def a(n):

x=bin(n)[2:]

y=x[::-1]

return int(str(int(y))+(len(x) - len(str(int(y))))*'0', 2)

print [a(n) for n in xrange(101)] # Indranil Ghosh, Jun 11 2017

STATUS

approved

editing

#15 by N. J. A. Sloane at Mon May 30 20:52:29 EDT 2016
STATUS

editing

approved