Meta-note: This post includes both computer science and computational number theory. I could have posted it in the Programming forum, the CS forum, the NT forum, or here; I felt that this was the best place, especially since the CS forum does not actually deal with computer science these days.(adsbygoogle = window.adsbygoogle || []).push({});

I was looking to verify some of the bounds on van der Waerden numbers, in particular the new ones posted at the Delft University of Technology's Van der Waerden numbers page. I thought this would be a good exercise for me, and that's what the certificates are for, right?

Apart from checking that numbers appear exactly once, the problem comes down to checking that there are no long arithmetic progressions in each of the sequences. I started by coding a direct implementation of Jeff Erickson's quadratic algorithm: Finding longest arithmetic progressions. The trouble is that the method requires an n x n array to find the longest progression in a list of length n, so verifying a lower bound of L for W(r, k) requires at least ceil(L/r)^2 memory. As I was using Pari (where a number takes at least 128 bits, I believe), this limited me to about 16,000 (in theory, with r = 2 and 1 GB of free memory) and only about 9,000 in practice (for r = 2 -- more for larger r).

Is there a good way to go further? Quadratic time and space won't let me verify large bounds. Is there a more memory-efficient algorithm, or perhaps a time-space tradeoff I can use?

**Physics Forums - The Fusion of Science and Community**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Finding longest arithmetic progressions

Loading...

Similar Threads - Finding longest arithmetic | Date |
---|---|

B Find the missing energy value given a set of data (Hypothetical question) | Mar 3, 2018 |

I Find the height up a ladder where a dropped bottle will break, using only two bottles | Feb 6, 2018 |

B Using trig to find distance? | Jan 18, 2018 |

I Finding the explicit solution of a trig equation | Nov 21, 2017 |

B Proofs: Hypotenuse is the longest side of a right triangle | Jul 24, 2016 |

**Physics Forums - The Fusion of Science and Community**