## Search found 31 matches

### Re: Floor sum

If there is a solution along similar lines to the one for $\lfloor \sqrt{k} \rfloor$ then it's a polynomial in $n$ and $\lfloor \sqrt{n} \rfloor$. Asymptotically the solution is $\Theta(n^2)$, so there are only 9 coefficients to determine. Pick 9 values of $n$, perform Gaussian elimination to get th...

- Fri May 22, 2020 8:35 am
- Forum: Clarifications on Project Euler Problems
- Topic: Problem 089
- Replies:
**67** - Views:
**21212**

### Re: Problem 089

Nothing wrong with cleverness, but I do think that one of the qualifications for a problem to make it to PE is that it should be a true combination of math and programming, so a problem shouldn't be solvable without a computer doing at least some computation. The compromise position is to include t...

- Tue Apr 21, 2020 3:18 pm
- Forum: News, Suggestions, and FAQ
- Topic: Answer checking API for CI/CD
- Replies:
**4** - Views:
**751**

### Re: Answer checking API for CI/CD

It would be awesome if it was possible for me to add a script which could check the solutions to the puzzles in the builds which would fail if incorrect. For that use case you don't want an API: you want a local file with test cases. Otherwise your build can randomly fail due either to temporary ne...

- Wed Apr 15, 2020 5:31 pm
- Forum: Resources
- Topic: Project Euler Android App
- Replies:
**11** - Views:
**14088**

### Re: Project Euler Android App

Who's the target audience? I've answered a few PE questions on my phone on the bus or in the café in my coffee break, and the only app I needed was qPython3.

- Fri Mar 20, 2020 12:32 pm
- Forum: Clarifications on Project Euler Problems
- Topic: Problem 236
- Replies:
**9** - Views:
**4007**

### Re: Problem 236

there is inevitably some spoilage each of the five per-product spoilage rates was worse (higher) for 'B' than for 'A' These quotes from the problem statement exclude solutions with no spoilage for one of more products. I think that is less than crystal clear. It's a perfectly reasonable (and, in ge...

- Sun Feb 16, 2020 4:12 pm
- Forum: News, Suggestions, and FAQ
- Topic: easier new problems?
- Replies:
**5** - Views:
**1007**

### Re: easier new problems?

I think one useful tool is simply to classify. A large chunk of problems are fundamentally about prime factorisations of integers from 1 to N: i.e. number theory. (They can be further classified: e.g. problems which rely on efficient counting of primes up to N). A smaller chunk of problems are about...

- Tue Feb 11, 2020 9:18 pm
- Forum: Clarifications on Project Euler Problems
- Topic: Problem 610
- Replies:
**18** - Views:
**5751**

### Re: Problem 610

The question states The rules do not place any restriction on the number of occurrences of M, so all integers have a valid representation. but doesn't explain how to get negative integers, and I got the tick with an answer which assumes that negative integers don't have a valid representation. I thi...

- Mon Jan 27, 2020 1:24 pm
- Forum: Clarifications on Project Euler Problems
- Topic: Problem 699
- Replies:
**0** - Views:
**2503**

### Problem 699

There's an error in the problem statement. It currently says

It should saythe denominator is a power of 3 i.e. $b=3^k, k>0$.

(The other possible correction, $>$ to $\ge$, doesn't match up with the test cases).the denominator is a power of 3 other than 1, i.e. $b=3^k, k>0$.

- Sat Jan 25, 2020 11:42 am
- Forum: Resources
- Topic: Retrieving Minimal Information
- Replies:
**24** - Views:
**23223**

### Re: Retrieving Minimal Information

For those interested in knowing, the minimal information script has been re-implemented. I have updated the first post to reflect any changes that may have taken place. There seems to be one change, possibly more recent than that, which isn't reflected in the first post: when logged in, I'm seeing ...

- Fri Jan 24, 2020 8:45 pm
- Forum: Combinatorics
- Topic: Matrix-valued generating functions
- Replies:
**0** - Views:
**4333**

### Matrix-valued generating functions

On another site, I recently tackled a question asked about an "idle" computer game which boiled down to the expected time to reach the absorbing state in a Markov process. As I didn't know the standard approach (I have now learnt it, so don't feel obliged to explain it :wink:), I reasoned as follows...

- Sat Jul 04, 2009 3:40 pm
- Forum: News, Suggestions, and FAQ
- Topic: Missed update
- Replies:
**2** - Views:
**1289**

### Re: Missed update

Aha. Thanks.

- Sat Jul 04, 2009 2:23 pm
- Forum: News, Suggestions, and FAQ
- Topic: Missed update
- Replies:
**2** - Views:
**1289**

### Missed update

I was expecting to see either Problem 253 or at least a countdown to it today. Have I missed an announcement? Is something up?

- Tue May 05, 2009 11:24 pm
- Forum: News, Suggestions, and FAQ
- Topic: Problem Level Platonic Solid
- Replies:
**7** - Views:
**2500**

### Re: Problem Level Platonic Solid

Another obvious extension is the regular "solids" of infinite volume. There are three, with respectively 6 triangles, 4 squares, or 3 hexagons meeting at each vertex, and tiling the surface of an infinitely large sphere.

- Tue Jan 06, 2009 9:46 pm
- Forum: Clarifications on Project Euler Problems
- Topic: Problem 094
- Replies:
**47** - Views:
**16145**

### Re: problem 94

Almost. It means less than or equal to 1.000.000.000.tiny wrote:The text says: whose perimeters do not exceed 1.000.000.000

Does this mean, that for every triangle the perimeter is less than 1.000.000.000?

- Tue Jan 06, 2009 1:35 pm
- Forum: Discrete Mathematics
- Topic: Gladiators
- Replies:
**20** - Views:
**7786**

### Re: Gladiators

I leave it as an exercise for the reader to prove that the un ordered partition of n health between r gladiators is (n+r-1)Cn. I think there is a typo there. Yes. For n=160, r=16, I find the number of ordered partitions to be much larger : 175 C 160 =1823828930470225269045 and the number of unorder...

- Mon Jan 05, 2009 12:26 am
- Forum: Discrete Mathematics
- Topic: Gladiators
- Replies:
**20** - Views:
**7786**

### Re: Gladiators

Huh, that looks interesting. How did you calculate that number? It's the ordered partition* of 160 health between 16 gladiators. I leave it as an exercise for the reader to prove that the unordered partition of n health between r gladiators is (n+r-1)Cn. * The partition into n distinguishing the n....

- Sat Dec 27, 2008 8:03 pm
- Forum: Discrete Mathematics
- Topic: Gladiators
- Replies:
**20** - Views:
**7786**

- Mon Dec 22, 2008 10:16 pm
- Forum: Discrete Mathematics
- Topic: Gladiators
- Replies:
**20** - Views:
**7786**

### Re: Gladiators

I make it a Markov model with 236236542585120 states. Fortunately the transition matrix is sparse

- Fri Dec 19, 2008 5:26 pm
- Forum: Discrete Mathematics
- Topic: Non-symmetric Palindromes
- Replies:
**9** - Views:
**4551**

### Re: Non-symmetric Palindromes

#!/bin/sh tr A-Z a-z </usr/share/dict/british-english | sort -u >/tmp/wordlist cat /tmp/wordlist | tr a-z phxdtl%brjzfvn%aqiyeum%csk | grep -v "%" | sort >/tmp/translated cat /tmp/wordlist /tmp/translated | sort | uniq -d Not that many. There are a handful of 5-letter ones: buffy hulls bulls huffy ...

- Sun Dec 14, 2008 7:46 pm
- Forum: Discrete Mathematics
- Topic: Coin Efficiency
- Replies:
**1** - Views:
**2101**

### Re: Coin Efficiency

The spoiler seems to be broken, so I've unspoilered this. Sorry. There's an easily proved lower bound of 2.52; it's achieved by the following 38 sets. I used a brute force search considering only coin values up to 100. The puzzle is so closely related to Golomb rulers that I thought offsetting one o...