## count up by even odd parity

For all your silly time-killing forum games.

Moderators: jestingrabbit, Moderators General, Prelates

phillip1882
Posts: 117
Joined: Fri Jun 14, 2013 9:11 pm UTC
Location: geogia
Contact:

### count up by even odd parity

if a number is prime, or divisible by an odd number of primes, post 1. if even number of primes post 0. post the number itself as well.

1 - no primes so even, 0.
good luck have fun

chridd
Has a vermicelli title
Posts: 831
Joined: Tue Aug 19, 2008 10:07 am UTC
Location: ...Earth, I guess?
Contact:

### Re: count up by even odd parity

2 - 1
~ chri d. d. /tʃɹɪ.di.di/ (Phonotactics, schmphonotactics) · she(?)(?(?)(?))(?(?(?))(?))(?) · Forum game scores
mittfh wrote:I wish this post was very quotable...
chridd (on Discord) wrote:
Dummy wrote:Sorry You're Gay Dads
SYG'D
marionic (on Discord) wrote:sleep in grave

Soupspoon
You have done something you shouldn't. Or are about to.
Posts: 3812
Joined: Thu Jan 28, 2016 7:00 pm UTC
Location: 53-1

### Re: count up by even odd parity

3 - 1

(Giving this a go. And wondering how 4 will go. Just the one prime, involved, but twice... Glad I'm not the one making the decision as to what that means, under the given instructions.)

phillip1882
Posts: 117
Joined: Fri Jun 14, 2013 9:11 pm UTC
Location: geogia
Contact:

### Re: count up by even odd parity

4 - two primes, 2 twice. 0
good luck have fun

Soupspoon
You have done something you shouldn't. Or are about to.
Posts: 3812
Joined: Thu Jan 28, 2016 7:00 pm UTC
Location: 53-1

### Re: count up by even odd parity

(Well, you'd know what you meant, and now do I... Not that I need to, yet.)
5 - 1

phillip1882
Posts: 117
Joined: Fri Jun 14, 2013 9:11 pm UTC
Location: geogia
Contact:

### Re: count up by even odd parity

6 - 0
good luck have fun

Soupspoon
You have done something you shouldn't. Or are about to.
Posts: 3812
Joined: Thu Jan 28, 2016 7:00 pm UTC
Location: 53-1

### Re: count up by even odd parity

7 - 1

phillip1882
Posts: 117
Joined: Fri Jun 14, 2013 9:11 pm UTC
Location: geogia
Contact:

### Re: count up by even odd parity

8 - 1
good luck have fun

Jplus
Posts: 1721
Joined: Wed Apr 21, 2010 12:29 pm UTC
Location: Netherlands

### Re: count up by even odd parity

9 - 0
"There are only two hard problems in computer science: cache coherence, naming things, and off-by-one errors." (Phil Karlton and Leon Bambrick)

coding and xkcd combined

(Julian/Julian's)

Soupspoon
You have done something you shouldn't. Or are about to.
Posts: 3812
Joined: Thu Jan 28, 2016 7:00 pm UTC
Location: 53-1

### Re: count up by even odd parity

10 - 0

phillip1882
Posts: 117
Joined: Fri Jun 14, 2013 9:11 pm UTC
Location: geogia
Contact:

### Re: count up by even odd parity

11- 1
the cool thing about this sequence is its fairly easy to generate given the previous values. all the odd parities have the same sequence if you step by their start index, and all the even parities also have the same sequence if you step by their start index.
for example, say you only had the first five index values.
0 1 1 0 1
1 2 3 4 5
then since the even 4 is followed by the odd 2 6 will be even since 3 is odd. we can also deduce that since 1 is even and is followed by 2 odd, 8 will be odd since 4 is even. then since no step value gets to seven, it must be odd. in short, you know all the multiples of 2,3,4,5 based on these five values.
good luck have fun

Soupspoon
You have done something you shouldn't. Or are about to.
Posts: 3812
Joined: Thu Jan 28, 2016 7:00 pm UTC
Location: 53-1

### Re: count up by even odd parity

12 - 1

I was looking at it, myself, as the even values from m to n being a Perfect Sharing Algorithm continuation of (all numbers) m/2n/2, because they were always whatever the (m… n)/2 value was, with one (more?) additional factor of 2. (This includes 2, which is the inverted parity of that given to 1.) The odd numbers, though, could have been been Prime or an odd-prime multiple of a prior fractional position. At some point, you're getting into the sort of territory of the Riemann Zeta Function, with those, or so I was thinking... I'll cogitate on your analysis, but I think we start to go into "but what about the numbers not a multiple of 2…5?" territory, which linerally intersperse even the spots with the densest (best coverage, least overlapping) ranges of 2,3,5 multiples...

(0110101100111000111100100011111100001000111110…)

phillip1882
Posts: 117
Joined: Fri Jun 14, 2013 9:11 pm UTC
Location: geogia
Contact:

### Re: count up by even odd parity

13 -1
admittedly the higher you go the harder it gets, because you have to look at more numbers. (up to roughly the square root of n) so i doubt we'll ever know the even odd parity of 10^^^10 +23. you could probably write a fairly simple computer program to compute n up to 1 million however.
good luck have fun

Soupspoon
You have done something you shouldn't. Or are about to.
Posts: 3812
Joined: Thu Jan 28, 2016 7:00 pm UTC
Location: 53-1

### Re: count up by even odd parity

14 - 0

Looks pretty much like O(test for Primality), though.

chridd
Has a vermicelli title
Posts: 831
Joined: Tue Aug 19, 2008 10:07 am UTC
Location: ...Earth, I guess?
Contact:

### Re: count up by even odd parity

15 - 0
~ chri d. d. /tʃɹɪ.di.di/ (Phonotactics, schmphonotactics) · she(?)(?(?)(?))(?(?(?))(?))(?) · Forum game scores
mittfh wrote:I wish this post was very quotable...
chridd (on Discord) wrote:
Dummy wrote:Sorry You're Gay Dads
SYG'D
marionic (on Discord) wrote:sleep in grave

Soupspoon
You have done something you shouldn't. Or are about to.
Posts: 3812
Joined: Thu Jan 28, 2016 7:00 pm UTC
Location: 53-1

### Re: count up by even odd parity

16 - 0

chridd
Has a vermicelli title
Posts: 831
Joined: Tue Aug 19, 2008 10:07 am UTC
Location: ...Earth, I guess?
Contact:

### Re: count up by even odd parity

17 - 1
~ chri d. d. /tʃɹɪ.di.di/ (Phonotactics, schmphonotactics) · she(?)(?(?)(?))(?(?(?))(?))(?) · Forum game scores
mittfh wrote:I wish this post was very quotable...
chridd (on Discord) wrote:
Dummy wrote:Sorry You're Gay Dads
SYG'D
marionic (on Discord) wrote:sleep in grave

Soupspoon
You have done something you shouldn't. Or are about to.
Posts: 3812
Joined: Thu Jan 28, 2016 7:00 pm UTC
Location: 53-1

### Re: count up by even odd parity

18 - 1

phillip1882
Posts: 117
Joined: Fri Jun 14, 2013 9:11 pm UTC
Location: geogia
Contact:

### Re: count up by even odd parity

19 - 1
good luck have fun

Soupspoon
You have done something you shouldn't. Or are about to.
Posts: 3812
Joined: Thu Jan 28, 2016 7:00 pm UTC
Location: 53-1

### Re: count up by even odd parity

20 - 1

chridd
Has a vermicelli title
Posts: 831
Joined: Tue Aug 19, 2008 10:07 am UTC
Location: ...Earth, I guess?
Contact:

### Re: count up by even odd parity

21 - 0
~ chri d. d. /tʃɹɪ.di.di/ (Phonotactics, schmphonotactics) · she(?)(?(?)(?))(?(?(?))(?))(?) · Forum game scores
mittfh wrote:I wish this post was very quotable...
chridd (on Discord) wrote:
Dummy wrote:Sorry You're Gay Dads
SYG'D
marionic (on Discord) wrote:sleep in grave

Soupspoon
You have done something you shouldn't. Or are about to.
Posts: 3812
Joined: Thu Jan 28, 2016 7:00 pm UTC
Location: 53-1

### Re: count up by even odd parity

22 - 0

chridd
Has a vermicelli title
Posts: 831
Joined: Tue Aug 19, 2008 10:07 am UTC
Location: ...Earth, I guess?
Contact:

### Re: count up by even odd parity

23 - 1
~ chri d. d. /tʃɹɪ.di.di/ (Phonotactics, schmphonotactics) · she(?)(?(?)(?))(?(?(?))(?))(?) · Forum game scores
mittfh wrote:I wish this post was very quotable...
chridd (on Discord) wrote:
Dummy wrote:Sorry You're Gay Dads
SYG'D
marionic (on Discord) wrote:sleep in grave

Soupspoon
You have done something you shouldn't. Or are about to.
Posts: 3812
Joined: Thu Jan 28, 2016 7:00 pm UTC
Location: 53-1

### Re: count up by even odd parity

24/7 - 0

chridd
Has a vermicelli title
Posts: 831
Joined: Tue Aug 19, 2008 10:07 am UTC
Location: ...Earth, I guess?
Contact:

### Re: count up by even odd parity

25 - 0
~ chri d. d. /tʃɹɪ.di.di/ (Phonotactics, schmphonotactics) · she(?)(?(?)(?))(?(?(?))(?))(?) · Forum game scores
mittfh wrote:I wish this post was very quotable...
chridd (on Discord) wrote:
Dummy wrote:Sorry You're Gay Dads
SYG'D
marionic (on Discord) wrote:sleep in grave

Soupspoon
You have done something you shouldn't. Or are about to.
Posts: 3812
Joined: Thu Jan 28, 2016 7:00 pm UTC
Location: 53-1

### Re: count up by even odd parity

26 - 0

phillip1882
Posts: 117
Joined: Fri Jun 14, 2013 9:11 pm UTC
Location: geogia
Contact:

### Re: count up by even odd parity

27 - 1
good luck have fun

Soupspoon
You have done something you shouldn't. Or are about to.
Posts: 3812
Joined: Thu Jan 28, 2016 7:00 pm UTC
Location: 53-1

### Re: count up by even odd parity

28 - 1

chridd
Has a vermicelli title
Posts: 831
Joined: Tue Aug 19, 2008 10:07 am UTC
Location: ...Earth, I guess?
Contact:

### Re: count up by even odd parity

~ chri d. d. /tʃɹɪ.di.di/ (Phonotactics, schmphonotactics) · she(?)(?(?)(?))(?(?(?))(?))(?) · Forum game scores
mittfh wrote:I wish this post was very quotable...
chridd (on Discord) wrote:
Dummy wrote:Sorry You're Gay Dads
SYG'D
marionic (on Discord) wrote:sleep in grave

Soupspoon
You have done something you shouldn't. Or are about to.
Posts: 3812
Joined: Thu Jan 28, 2016 7:00 pm UTC
Location: 53-1

### Re: count up by even odd parity

30 - 1

phillip1882
Posts: 117
Joined: Fri Jun 14, 2013 9:11 pm UTC
Location: geogia
Contact:

### Re: count up by even odd parity

31 - 1
good luck have fun

chridd
Has a vermicelli title
Posts: 831
Joined: Tue Aug 19, 2008 10:07 am UTC
Location: ...Earth, I guess?
Contact:

### Re: count up by even odd parity

32 - 1
~ chri d. d. /tʃɹɪ.di.di/ (Phonotactics, schmphonotactics) · she(?)(?(?)(?))(?(?(?))(?))(?) · Forum game scores
mittfh wrote:I wish this post was very quotable...
chridd (on Discord) wrote:
Dummy wrote:Sorry You're Gay Dads
SYG'D
marionic (on Discord) wrote:sleep in grave

Soupspoon
You have done something you shouldn't. Or are about to.
Posts: 3812
Joined: Thu Jan 28, 2016 7:00 pm UTC
Location: 53-1

### Re: count up by even odd parity

33 - 0

(In light of the sequence page, I just thought I'd reveal my internal head algorithm:

Code: Select all

`sub ParityOf { my (\$n)=@_;  return 0 if \$n=1; # You gotta hate 'special cases', but it aint turtles /all/ the way down...     for my \$m (2,3..\$n**0.5,\$m) { # Noting that for \$n<9 this is awkward, but not necessarily fatal!    return 1-ParityOf(\$n/\$m) unless (\$n%\$m);  } # Loop is inefficient, of course. But quick enough in the circumstances.    # If we didn't have \$n=\$m in the above loop, then we'd still be here 'cos \$m is a prime. Gotta be.  return 1 # Or "1-ParityOf(1)", to keep just the one 'explicit' case.  # But that's actually implicit in the above. The above code never gets called. But there you go.}`

...yes, I think in Perl. You got a problem with that? That most of it is Comments is perhaps more noteworthy, though.

Actually, I've been more "is that a prime?" and shortcutting to 1 if it is (so far, instantly recognised), then finding a simple divisor (2 in every case until now, as it happens, except for the 3,5,7 I caught in my prime-sieve; this was the first time I needed to use 3) and flipping the parity given to the division result, assuming that was never wrong. Same effect, though, just with pre-stored caches instead of recursive revisiting of old information.)

phillip1882
Posts: 117
Joined: Fri Jun 14, 2013 9:11 pm UTC
Location: geogia
Contact:

### Re: count up by even odd parity

34 - 0
good luck have fun

Soupspoon
You have done something you shouldn't. Or are about to.
Posts: 3812
Joined: Thu Jan 28, 2016 7:00 pm UTC
Location: 53-1

### Re: count up by even odd parity

35 - 0

(This time, my Head Algorithm has to access 5 and/or 7 for the first time since actual 5 and 7... )

chridd
Has a vermicelli title
Posts: 831
Joined: Tue Aug 19, 2008 10:07 am UTC
Location: ...Earth, I guess?
Contact:

### Re: count up by even odd parity

36 - 0
(square numbers are always going to be 0)
~ chri d. d. /tʃɹɪ.di.di/ (Phonotactics, schmphonotactics) · she(?)(?(?)(?))(?(?(?))(?))(?) · Forum game scores
mittfh wrote:I wish this post was very quotable...
chridd (on Discord) wrote:
Dummy wrote:Sorry You're Gay Dads
SYG'D
marionic (on Discord) wrote:sleep in grave

phillip1882
Posts: 117
Joined: Fri Jun 14, 2013 9:11 pm UTC
Location: geogia
Contact:

### Re: count up by even odd parity

37 - 1
good luck have fun

Soupspoon
You have done something you shouldn't. Or are about to.
Posts: 3812
Joined: Thu Jan 28, 2016 7:00 pm UTC
Location: 53-1

### Re: count up by even odd parity

38 - 0

chridd
Has a vermicelli title
Posts: 831
Joined: Tue Aug 19, 2008 10:07 am UTC
Location: ...Earth, I guess?
Contact:

### Re: count up by even odd parity

39 - 0
~ chri d. d. /tʃɹɪ.di.di/ (Phonotactics, schmphonotactics) · she(?)(?(?)(?))(?(?(?))(?))(?) · Forum game scores
mittfh wrote:I wish this post was very quotable...
chridd (on Discord) wrote:
Dummy wrote:Sorry You're Gay Dads
SYG'D
marionic (on Discord) wrote:sleep in grave

Soupspoon
You have done something you shouldn't. Or are about to.
Posts: 3812
Joined: Thu Jan 28, 2016 7:00 pm UTC
Location: 53-1

### Re: count up by even odd parity

40 - 0

Return to “Forum Games”

### Who is online

Users browsing this forum: chridd and 41 guests