login

Revision History for A334042

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

Showing entries 1-10 | older changes
Write n^2 in binary, interchange 0's and 1's, convert back to decimal.
(history; published version)
#24 by Alois P. Heinz at Mon Apr 13 18:19:25 EDT 2020
STATUS

proposed

approved

#23 by Chai Wah Wu at Mon Apr 13 17:18:47 EDT 2020
STATUS

editing

proposed

#22 by Chai Wah Wu at Mon Apr 13 17:18:41 EDT 2020
PROG

return 2**(len(bin(n**2))-2)-1-n**2 # Chai Wah Wu, Apr 13 2020

#21 by Chai Wah Wu at Mon Apr 13 17:18:27 EDT 2020
PROG

(Python)

def A334042(n):

return 2**(len(bin(n**2))-2)-1-n**2 # Chai Wah Wu, Apr 13 2020

STATUS

approved

editing

#20 by Alois P. Heinz at Mon Apr 13 15:53:05 EDT 2020
STATUS

proposed

approved

#19 by Daniel Starodubtsev at Mon Apr 13 13:56:12 EDT 2020
STATUS

editing

proposed

#18 by Daniel Starodubtsev at Mon Apr 13 13:56:08 EDT 2020
LINKS

Daniel Starodubtsev, <a href="/A334042/b334042.txt">Table of n, a(n) for n = 0..10000</a>

STATUS

approved

editing

#17 by Charles R Greathouse IV at Mon Apr 13 11:24:13 EDT 2020
STATUS

proposed

approved

#16 by Alois P. Heinz at Mon Apr 13 10:54:34 EDT 2020
STATUS

editing

proposed

#15 by Alois P. Heinz at Mon Apr 13 10:54:05 EDT 2020
PROG

(Python)

STATUS

reviewed

editing