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

Revision History for A059012

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

Showing entries 1-10 | older changes
Numbers that have an even number of 0's and 1's in their binary expansion.
(history; published version)
#23 by Harvey P. Dale at Mon Aug 16 13:43:28 EDT 2021
STATUS

editing

approved

#22 by Harvey P. Dale at Mon Aug 16 13:43:24 EDT 2021
MATHEMATICA

Select[Range[200], AllTrue[{DigitCount[#, 2, 0], DigitCount[#, 2, 1]}, EvenQ]&] (* Harvey P. Dale, Aug 16 2021 *)

STATUS

approved

editing

#21 by Alois P. Heinz at Fri Apr 30 21:17:36 EDT 2021
STATUS

proposed

approved

#20 by Kevin Ryde at Fri Apr 30 20:01:03 EDT 2021
STATUS

editing

proposed

#19 by Kevin Ryde at Fri Apr 30 19:59:26 EDT 2021
LINKS

<a href="/index/Bi#binary">Index entries for sequences related to binary expansion of n</a>

Discussion
Fri Apr 30
20:01
Kevin Ryde: Keyword base I think, but now I'm dithering whether the index link would be binary expansion or 2-automatic (or both!, can leave that out for now).
#18 by Kevin Ryde at Fri Apr 30 19:45:23 EDT 2021
LINKS

<a href="/index/Bi#binary">Index entries for sequences related to binary expansion of n</a>

KEYWORD

nonn,base,easy,changed

STATUS

proposed

editing

#17 by Michel Marcus at Fri Apr 30 17:08:43 EDT 2021
STATUS

editing

proposed

#16 by Michel Marcus at Fri Apr 30 17:08:39 EDT 2021
NAME

Numbers n which that have an even number of 0's and 1's in their binary expansion.

STATUS

proposed

editing

#15 by F. Chapoton at Fri Apr 30 14:42:57 EDT 2021
STATUS

editing

proposed

#14 by F. Chapoton at Fri Apr 30 14:42:50 EDT 2021
PROG

while j<=32768300:

.... if bin(i)[2:].count("1")%2 == 0 and == bin(i)[2:].count("0")%2==0:

........ print (str(j)+" "+str(i))

........ j+=1

.... i+=1 # Indranil Ghosh, Feb 10 2017

STATUS

approved

editing

Discussion
Fri Apr 30
14:42
F. Chapoton: adapt py code to py3