Forum: Puzzles
2021-04-04, 15:28
|
Replies: 19
Views: 1,000
|
Forum: Puzzles
2021-02-04, 20:26
|
Replies: 36
Views: 4,248
|
Forum: Puzzles
2021-01-14, 00:09
|
Replies: 13
Views: 1,260
|
Forum: Puzzles
2021-01-10, 15:35
|
Replies: 21
Views: 2,500
|
Forum: Puzzles
2021-01-07, 16:23
|
Replies: 13
Views: 1,459
|
Forum: Puzzles
2021-01-05, 00:12
|
Replies: 13
Views: 1,459
|
Forum: Puzzles
2021-01-04, 14:16
|
Replies: 36
Views: 4,248
How do you know that?
The "hint" doesn't...
How do you know that?
The "hint" doesn't seem to say anything - it's basically what I'd expect to be the case IF some N requires 3 or more bots, but I see no hint there WHY you'd expect some case...
|
Forum: Puzzles
2021-01-04, 03:25
|
Replies: 36
Views: 4,248
|
Forum: Puzzles
2020-12-24, 22:28
|
Replies: 11
Views: 1,732
I don't think there is anything particularly...
I don't think there is anything particularly paradoxical here. This is not a zero-sum game unless x = 1/2. It's not surprising that changes which result in player 2 switching strategy may help player...
|
Forum: Puzzles
2020-10-08, 19:45
|
Replies: 33
Views: 9,658
|
Forum: Puzzles
2020-10-06, 19:10
|
Replies: 33
Views: 9,658
By the way, for the bonus question this follows...
By the way, for the bonus question this follows from a more obviously reasonable assumption: that for any pair of vertices, there exists an automorphism mapping one to the other. Or in other words,...
|
Forum: Puzzles
2020-10-06, 15:31
|
Replies: 33
Views: 9,658
Although I first solved the bonus problem...
Although I first solved the bonus problem differently, I think the simplest way to arrive at the solution is similar to what Oscar said - consider graphs where the elements are numbers mod 11 where...
|
Forum: Puzzles
2020-10-05, 19:22
|
Replies: 34
Views: 6,039
I interpreted it as creating the control-flow...
I interpreted it as creating the control-flow graph based only on the existence of jump commands, so it does not depend on values of a and b. Actual behavior of the program will depend on those, but...
|
Forum: Puzzles
2020-10-01, 13:28
|
Replies: 34
Views: 6,039
|
Forum: Puzzles
2020-09-01, 15:27
|
Replies: 33
Views: 9,658
|
Forum: Puzzles
2020-08-05, 22:38
|
Replies: 28
Views: 10,113
|
Forum: Puzzles
2020-08-05, 21:53
|
Replies: 28
Views: 10,113
|
Forum: Puzzles
2020-08-04, 15:07
|
Replies: 28
Views: 10,113
I assume that half the bits are ones, so that's...
I assume that half the bits are ones, so that's about equivalent to length of the number x being 1.44N bits, or log(x) = 1.44N*log(2) = N. The prime number theorem says the sum of log(p) for primes p...
|
Forum: Puzzles
2020-07-05, 22:21
|
Replies: 16
Views: 8,900
Here's the program I used:
...
Here's the program I used:
#!/usr/bin/python3
from gmpy2 import is_prime
def rec(n, target, used=set(), res=1, divsum=1, last1=None, last2=None):
if n == 1:
|
Forum: Puzzles
2020-06-21, 23:26
|
Replies: 7
Views: 3,712
|
Forum: Puzzles
2020-06-21, 23:21
|
Replies: 7
Views: 3,712
Here's a more reasonable way to search a fixed...
Here's a more reasonable way to search a fixed base for solutions (seems to be about ten thousand times as fast as your code):
base = 904
p = [i**i for i in range(base)]
d = {pi-i:i for i, pi in...
|
Forum: Puzzles
2020-06-21, 16:19
|
Replies: 7
Views: 3,712
No larger solutions with less than 1000 base-10...
No larger solutions with less than 1000 base-10 digits. Given the three digits, you can solve for base as a second-degree polynomial. I checked that all triples with largest digit in [8, 400[ give...
|
Forum: Puzzles
2020-06-06, 23:32
|
Replies: 16
Views: 8,900
|
Forum: Puzzles
2020-06-03, 21:16
|
Replies: 44
Views: 17,470
|
Forum: Puzzles
2020-06-01, 21:52
|
Replies: 16
Views: 8,900
Not being a prime doesn't stop it from being...
Not being a prime doesn't stop it from being coprime to something else. gcd(x, 1)==1, so 1 is coprime to x, whatever x is.
But yeah 0 is not relevant, I wasn't really thinking when writing...
|