count up by even odd parity

For all your silly time-killing forum games.

Moderators: jestingrabbit, Moderators General, Prelates

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

count up by even odd parity

Postby phillip1882 » Fri Aug 18, 2017 11:34 pm UTC

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

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

Re: count up by even odd parity

Postby chridd » Sat Aug 19, 2017 1:45 am UTC

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

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

Re: count up by even odd parity

Postby Soupspoon » Sat Aug 19, 2017 1:49 am UTC

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.)

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

Re: count up by even odd parity

Postby phillip1882 » Sat Aug 19, 2017 12:51 pm UTC

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

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

Re: count up by even odd parity

Postby Soupspoon » Sat Aug 19, 2017 1:04 pm UTC

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

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

Re: count up by even odd parity

Postby phillip1882 » Sat Aug 19, 2017 8:30 pm UTC

6 - 0
good luck have fun

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

Re: count up by even odd parity

Postby Soupspoon » Sat Aug 19, 2017 8:35 pm UTC

7 - 1

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

Re: count up by even odd parity

Postby phillip1882 » Sat Aug 19, 2017 9:44 pm UTC

8 - 1
good luck have fun

User avatar
Jplus
Posts: 1711
Joined: Wed Apr 21, 2010 12:29 pm UTC
Location: Netherlands

Re: count up by even odd parity

Postby Jplus » Sat Aug 19, 2017 9:47 pm UTC

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)

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

Re: count up by even odd parity

Postby Soupspoon » Sat Aug 19, 2017 10:25 pm UTC

10 - 0

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

Re: count up by even odd parity

Postby phillip1882 » Sat Aug 19, 2017 11:39 pm UTC

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

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

Re: count up by even odd parity

Postby Soupspoon » Sun Aug 20, 2017 12:00 am UTC

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…)

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

Re: count up by even odd parity

Postby phillip1882 » Sun Aug 20, 2017 12:33 am UTC

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

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

Re: count up by even odd parity

Postby Soupspoon » Sun Aug 20, 2017 5:12 am UTC

14 - 0

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

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

Re: count up by even odd parity

Postby chridd » Sun Aug 20, 2017 6:40 am UTC

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

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

Re: count up by even odd parity

Postby Soupspoon » Sun Aug 20, 2017 7:48 am UTC

16 - 0

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

Re: count up by even odd parity

Postby chridd » Sun Aug 20, 2017 8:07 am UTC

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

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

Re: count up by even odd parity

Postby Soupspoon » Sun Aug 20, 2017 8:17 am UTC

18 - 1

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

Re: count up by even odd parity

Postby phillip1882 » Sun Aug 20, 2017 5:40 pm UTC

19 - 1
good luck have fun

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

Re: count up by even odd parity

Postby Soupspoon » Sun Aug 20, 2017 5:50 pm UTC

20 - 1

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

Re: count up by even odd parity

Postby chridd » Sun Aug 20, 2017 5:57 pm UTC

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

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

Re: count up by even odd parity

Postby Soupspoon » Sun Aug 20, 2017 6:28 pm UTC

22 - 0

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

Re: count up by even odd parity

Postby chridd » Sun Aug 20, 2017 6:42 pm UTC

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

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

Re: count up by even odd parity

Postby Soupspoon » Sun Aug 20, 2017 6:45 pm UTC

24/7 - 0

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

Re: count up by even odd parity

Postby chridd » Sun Aug 20, 2017 8:53 pm UTC

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

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

Re: count up by even odd parity

Postby Soupspoon » Sun Aug 20, 2017 9:32 pm UTC

26 - 0

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

Re: count up by even odd parity

Postby phillip1882 » Sun Aug 20, 2017 9:57 pm UTC

27 - 1
good luck have fun

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

Re: count up by even odd parity

Postby Soupspoon » Sun Aug 20, 2017 10:37 pm UTC

28 - 1

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

Re: count up by even odd parity

Postby chridd » Mon Aug 21, 2017 1:15 am UTC

~ 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

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

Re: count up by even odd parity

Postby Soupspoon » Mon Aug 21, 2017 10:55 am UTC

30 - 1

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

Re: count up by even odd parity

Postby phillip1882 » Mon Aug 21, 2017 1:28 pm UTC

31 - 1
good luck have fun

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

Re: count up by even odd parity

Postby chridd » Mon Aug 21, 2017 1:37 pm UTC

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

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

Re: count up by even odd parity

Postby Soupspoon » Mon Aug 21, 2017 2:58 pm UTC

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.)

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

Re: count up by even odd parity

Postby phillip1882 » Mon Aug 21, 2017 4:45 pm UTC

34 - 0
good luck have fun

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

Re: count up by even odd parity

Postby Soupspoon » Mon Aug 21, 2017 4:50 pm UTC

35 - 0

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

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

Re: count up by even odd parity

Postby chridd » Mon Aug 21, 2017 8:02 pm UTC

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

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

Re: count up by even odd parity

Postby phillip1882 » Mon Aug 21, 2017 9:00 pm UTC

37 - 1
good luck have fun

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

Re: count up by even odd parity

Postby Soupspoon » Mon Aug 21, 2017 9:13 pm UTC

38 - 0

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

Re: count up by even odd parity

Postby chridd » Mon Aug 21, 2017 9:39 pm UTC

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

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

Re: count up by even odd parity

Postby Soupspoon » Mon Aug 21, 2017 9:50 pm UTC

40 - 0


Return to “Forum Games”

Who is online

Users browsing this forum: gmalivuk, Google [Bot] and 6 guests